Replies: 1 comment 9 replies
-
To resolve the "400 Client Error: Bad Request" when using %pip install --upgrade --quiet atlassian-python-api Additionally, verify that the
Here is an example of how to use from langchain_community.document_loaders import ConfluenceLoader
loader = ConfluenceLoader(
url="https://yoursite.atlassian.com/wiki", username="me", api_key="12345"
)
documents = loader.load(space_key="SPACE", include_attachments=True, limit=50) If you are using a Personal Access Token (PAT) for an on-prem installation, the code would look like this: from langchain_community.document_loaders import ConfluenceLoader
loader = ConfluenceLoader(
url="https://confluence.yoursite.com/",
token="12345",
cloud=False,
space_key="SPACE",
limit=50,
)
documents = loader.load(include_attachments=True, max_pages=50) Ensure that the user associated with the PAT has the necessary permissions to access the documents and attachments. Additionally, make sure to specify the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
While running confluence loader with include_attachments=True, I am getting below error:
'message'
400 Client Error: Bad Request for url: https://api.media.atlassian.com/file/UNKNOWN_MEDIA_ID/binary?token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmMTc3YzU0Ny03Y2NlLTQyN2ItYmQ5Yy00M2I4ZmZlOWRkZDUiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpmaWxlOlVOS05PV05fTUVESUFfSUQiOlsicmVhZCJdfSwiZXhwIjoxNzIzNzE4NzAyLCJuYmYiOjE3MjM2MzU3ODJ9.ZUaXdaEuTxWnqKcIk4rXvSPhBAhmixzWQOPxXzqBbBo&client=f177c547-7cce-427b-bd9c-43b8ffe9ddd5&name=Invalid%20file%20id%20-%20UNKNOWN_MEDIA_ID&max-age=2940
System Info
langchain
ubuntu
Beta Was this translation helpful? Give feedback.
All reactions