I am trying something with poc for chat gpt with trial account of confluence .
I am using python library as below
from langchain.document_loaders import ConfluenceLoader .
loader = ConfluenceLoader(url="https://yogeshdeshmukh.atlassian.net/wiki",
token="XXXX")
documentLoaders = documentLoaders + loader.load(space_key="YYYY", include_attachments=False, limit=10)
As per logs it calls
https://yogeshdeshmukh.atlassian.net:443 "GET /wiki/rest/api/content?spaceKey=~YYYY&limit=10&status=current&expand=body.storage&type=page HTTP/1.1" 403 None
DEBUG:atlassian.rest_client:HTTP: GET rest/api/content -> 403 Forbidden
DEBUG:atlassian.rest_client:HTTP: Response text -> {"error": "Failed to parse Connect Session Auth Token"}
ERROR:atlassian.confluence:'message'
Traceback (most recent call last):
File "/Users/ydeshmukh/Library/Python/3.9/lib/python/site-packages/atlassian/confluence.py", line 3122, in raise_for_status
error_msg = j["message"]
Do I need to have paid account only for this api.
My organization do have it but right now I want to do POC with test data.
Is there any configuration i am missing for api token ?
Hi,
I could resolved issue . Issue was because of api key not account password but the generated api token as a whole.
Corrected it and its working now as expected .
Thanks
Yogesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.