Hello everyone! I am constantly having issues tryi...
# help-connector-development
l
Hello everyone! I am constantly having issues trying to read the invoices endpoint from Zoho Books. I am building it using the Low CDK configuration. The setup is very simple and I am trying to authenticate the endpoint using Oauth. All the necessary configs are provided(Please refer the image attached)! However I keep getting the below error
Copy code
File "/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?
j
It seems like the zoho API requires client id / secret and refresh token to be sent as query parameters, but the oauth authenticator in the low code framework is sending them as properties in the json body
Unfortunately it doesn't look like the low code CDK can handle this style of authentication at the moment