-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
possible bugBug was reported but is not confirmed or is unable to be replicated.Bug was reported but is not confirmed or is unable to be replicated.
Description
How are you running AnythingLLM?
Local development
What happened?
anything-llm/collector/utils/extensions/Confluence/index.js
Lines 208 to 213 in b25298c
| function generateAPIBaseUrl(matchResult = {}, isCustomDomain = false) { | |
| const { subdomain } = matchResult; | |
| let subpath = isCustomDomain ? `` : `/wiki`; | |
| if (isCustomDomain) return `https://${customDomain}${subpath}`; | |
| return `https://${subdomain}.atlassian.net${subpath}`; | |
| } |
if i want to ingest a confluence from a custom domain, it seems to throw exception at code there, and do not proceed.
curl -X POST "http://localhost:3001/api/ext/confluence" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwidXNlcm5hbWUiOiJtYW5hZ2VyIiwiaWF0IjoxNzI2NzMzNzIwLCJleHAiOjE3MjkzMjU3MjB9.ZcSZkFBiDjS6fNMnhGJYQPm8k7wlR-tHETC3Wq9jGTk" \
-H "Content-Type: text/plain;charset=UTF-8" \
-d '{"pageUrl":"https://test.localhost/display/test","username":"test@test.com","accessToken":"test"}'
Are there known steps to reproduce?
No response
Metadata
Metadata
Assignees
Labels
possible bugBug was reported but is not confirmed or is unable to be replicated.Bug was reported but is not confirmed or is unable to be replicated.