Expecting value: line 1 column 1 (char 0) Attachment not found at ... - ConfluenceLoader fails to parse attachment JSON and generates incorrect URLs #28672
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
Description:
When attempting to download attachments from Confluence using the ConfluenceLoader, two issues occur:
/wiki/
path segmentinclude_attachments=True seems to be broken
Steps to Reproduce:
Current Behavior:
Expected Behavior:
/wiki/
path segmentError Messages:
Expected Behavior:
Correct URL format should be:
Key URL Differences:
/wiki/
in path//
after domain&download=true
parameterEnvironment:
Additional Context:
This appears to be an issue with both the attachment JSON parsing and URL construction in the ConfluenceLoader implementation. The double slash and missing
/wiki/
segment in the URL causes 404 errors, while the JSON parsing error suggests problems with the attachment data handling.Error Message and Stack Trace (if applicable)
(provided above)
Description
Description
I'm trying to use the ConfluenceLoader from langchain-community to download and process Confluence documents with attachments.
Expected behavior:
Current behavior:
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: