Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

facing issue of Failed to parse Connect Session Auth Token

yogi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2023

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 ?

    

1 answer

0 votes
yogi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 11, 2023

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

Ravi Tej
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 25, 2023

Hi @yogi , Can you tell me how did u resolve? thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events