这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@oicu0619

Description

@oicu0619

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

Metadata

Metadata

Assignees

Labels

possible bugBug was reported but is not confirmed or is unable to be replicated.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions