Find answers from the community

Updated 6 months ago

I am trying to load confluence data

At a glance

A community member is trying to load Confluence data using ConfluenceReader, but is encountering an issue where they are providing the correct username, password, and API key, but still unable to access the data. The error message indicates a "KeyError: 'message'" and "HTTPError: 403 Client Error: Forbidden for url". Another community member suggests following a guide to connect to Confluence, but there is no explicitly marked answer.

Useful resources
I am trying to load confluence data using ConfluenceReader, i am providing the correct username, password as well as the api key but it is still not able to access it. Kindly help
Code:
%env CONFLUENCE_API_TOKEN=api
%env CONFLUENCE_PASSWORD=pass
%env CONFLUENCE_USERNAME=user
base_url = "https://hi.atlassian.net/wiki"
space_key = "spacekey"
reader = ConfluenceReader(base_url=base_url)
documents = reader.load_data(space_key=space_key, include_attachments=True)

Error:
KeyError: 'message'
During handling of the above exception, another exception occurred:
HTTPError: 403 Client Error: Forbidden for url
W
1 comment
did you follow this to connect to confluence?
https://llamahub.ai/l/confluence
Add a reply
Sign up and join the conversation on Discord