Hi team, I am trying to generate token using airbyte API using self managed instance on ubuntu vm:
import requests
url = "
http://localhost:8000/api/v1/applications/token"
payload = {
"client_id": "",
"client_secret": ""
}
response =
requests.post(url, json=payload)
print(response.status_code)
print(response.json())
access_token = response.json().get("access_token")
if not access_token:
raise Exception("Failed to obtain access token")
And this is the error i am getting:
400
{'message': 'Bad Request', '_embedded': {'errors': [{'message': 'Invalid client id or token', '_embedded': {}, '_links': {}}]}, '_links': {'self': {'href': '/api/v1/applications/token', 'templated': False}}}
Traceback (most recent call last):
File "/home/azureuser/test_airbyte_token.py", line 14, in <module>
raise Exception("Failed to obtain access token")
Exception: Failed to obtain access token
Also i notice that while doing abctl local credentials, my email ID isn't set and in the UI, client ID isn't visible anymore like it was in previous versions