I am using langchain to load the confluence pages but getting Api Permission error.
Here is the code :
from langchain_community.document_loaders import ConfluenceLoader
loader = ConfluenceLoader(
url="https://ge-hc.atlassian.net/wiki", username="roofi.shaikh@gehealthcare.com", api_key="my-api-key"
)
documents = loader.load(space_key="SPACE", include_attachments=True, limit=50)
Here is the error :
Retrying atlassian.confluence.Confluence.get_all_pages_from_space in 2.0 seconds as it raised ApiPermissionError: The calling user does not have permission to view the content.
How do I enable permissions ?