airbyte-api-python-sdk icon indicating copy to clipboard operation
airbyte-api-python-sdk copied to clipboard

Default token_url appears to be wrong on class SchemeClientCredentials

Open FredericoCoelhoNunes opened this issue 4 months ago • 0 comments

Description

I was instantiating my connection to the AirbyteAPI in the following way

s = airbyte_api.AirbyteAPI(
    security=models.Security(
        client_credentials=models.SchemeClientCredentials(
            client_id='...',
            client_secret='...'
        ),
    )
)

obtaining an error when performing a request:

Exception: Unexpected status code 404 from token endpoint

The default value for the token_url parameter on SchemeClientCredentials is /applications/token.

When I set the parameter token_url="/v1/applications/token" (note the added /v1) everything works fine and I am able to perform the request.

Additional Information

  • version: airbyte-api==0.52.1 (latest available at time of writing)
  • Airbyte Cloud user

FredericoCoelhoNunes avatar Sep 26 '24 10:09 FredericoCoelhoNunes