Lenin Mishra
06/20/2023, 6:48 AMFile "/root/.pyenv/versions/3.9.11/lib/python3.9/site-packages/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py", line 33, in get_auth_header
return {"Authorization": f"Bearer {self.get_access_token()}"}
File "/root/.pyenv/versions/3.9.11/lib/python3.9/site-packages/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py", line 38, in get_access_token
token, expires_in = self.refresh_access_token()
File "/root/.pyenv/versions/3.9.11/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/auth/oauth.py", line 116, in refresh_access_token
return response_json[self.get_access_token_name()], response_json[self.get_expires_in_name()]
KeyError: 'access_token'
Now, when I run the above query in Postman I get all my results. Seems like something is going wrong with generation of new access token. For some reason, the token_refresh_endpoint is not returning a json with the access_token key.
can someone help me with it?Joe Reuter (Airbyte)
06/20/2023, 7:42 AMJoe Reuter (Airbyte)
06/20/2023, 7:43 AM