Low Code connector builder - Session Token Path assistance #39352
Unanswered
Chrhrry
asked this question in
Connector Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi we are connecting to an API using Bearer Token and Session Tokens. and getting an issue loading our first stream - could anyone assist please?
Login goes ok and we get a reponse:200 but we are not able to use this - getting error:
session_token = dpath.get(self._decoder.decode(response), self.session_token_path)
File "/home/airbyte/.pyenv/versions/3.9.11/lib/python3.9/site-packages/dpath/init.py", line 189, in get
raise KeyError(glob)
KeyError: ['tokens.access.token']
We have the Session Token Path field set to: tokens.access.token
We have this working in Powershell ok as a test - just can't translate that to airbyte
The reponse in airbyte for the login request is:
{
"status": 200,
"body": {
"tokens": {
"access": {
"token": "DELETED...",
"type": "Bearer",
"expirySeconds": 3600
},
"refresh": {
"token": "Deleted....",
"type": "Body",
"expirySeconds": 90000
}
},
"refresh": "/api/auth/refresh",
"validate": "/api/auth/validate"
},
"headers": {
"date": "Sat, 08 Jun 2024 07:25:58 GMT",
"content-type": "application/json",
"x-envoy-upstream-service-time": "5",
"server": "envoy",
"transfer-encoding": "chunked"
}
}
Beta Was this translation helpful? Give feedback.
All reactions