Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: customDomain of confluence ingest is not working properly #2321

Closed
oicu0619 opened this issue Sep 19, 2024 · 0 comments · Fixed by #2328
Closed

[BUG]: customDomain of confluence ingest is not working properly #2321

oicu0619 opened this issue Sep 19, 2024 · 0 comments · Fixed by #2328
Assignees
Labels
possible bug Bug was reported but is not confirmed or is unable to be replicated.

Comments

@oicu0619
Copy link

How are you running AnythingLLM?

Local development

What happened?

function generateAPIBaseUrl(matchResult = {}, isCustomDomain = false) {
const { subdomain } = matchResult;
let subpath = isCustomDomain ? `` : `/wiki`;
if (isCustomDomain) return `https://${customDomain}${subpath}`;
return `https://${subdomain}.atlassian.net${subpath}`;
}
, the customDomain variable is not defined anywhere.
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

@oicu0619 oicu0619 added the possible bug Bug was reported but is not confirmed or is unable to be replicated. label Sep 19, 2024
@shatfield4 shatfield4 linked a pull request Sep 19, 2024 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible bug Bug was reported but is not confirmed or is unable to be replicated.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants