500 Internal Server Error when getting access token via Airbyte API

Summary

The user is encountering a 500 Internal Server Error when trying to get an access token via the Airbyte API. The provided code snippet and error message are shared for troubleshooting.


Question

Hello everyone,

Please I’m getting a 500 internal server eror when trying to get access token via the airbyte api. This is my code and the error. Please what could I be doing wrong

import requests

url = “https://api.airbyte.com/v1/applications/token

payload = {
“client_id”: f"{CLIENT_ID}“,
“client_secret”: f”{CLIENT_SECRET}",
“grant-type”: “client_credentials”
}
headers = {
“accept”: “application/json”,
“content-type”: “application/json”
}

response = http://requests.post|requests.post(url, json=payload, headers=headers)

print(response.text)

Error:

{
“message”: “Internal Server Error”,
“_embedded”: {
“errors”: [
{
“message”: “Internal Server Error: class org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine$3 cannot be cast to class io.micronaut.jaxrs.common.JaxRsMutableResponse (org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine$3 and io.micronaut.jaxrs.common.JaxRsMutableResponse are in unnamed module of loader ‘app’)”,
“_embedded”: {},
“_links”: {}
}
]
},
“_links”: {
“self”: {
“href”: “/api/public/v1/applications/token”,
“templated”: false
}
}
}



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

["airbyte-api", "internal-server-error", "access-token", "python-requests"]