Skip to content

Invalid Configuration Error: OAuthTokenResponse is missing required property 'access_token' #402

@fivetran-jacklowery

Description

@fivetran-jacklowery

What happens?

I am trying to create secret following these docs but I am getting an error:
Invalid Configuration Error: OAuthTokenResponse is missing required property 'access_token'

I was able to use PyIceberg and the response body did indeed have access_token so it seems to be an issue with DuckDB. I cannot include my client id/secret but perhaps can share additional details if needed.

To Reproduce

I have been able to use these extensions in the past but when upgrading 1.3.2 it seems as if the access_token is not found.

AI says "The DuckDB C++ code, specifically the part responsible for making the HTTP call and parsing the OAuth2 response, is failing."

INSTALL iceberg;
INSTALL httpfs;
LOAD iceberg;
LOAD httpfs;

CREATE SECRET iceberg_secret (
  TYPE ICEBERG,
  CLIENT_ID 'your_id',
  CLIENT_SECRET 'your_secret',
  OAUTH2_SERVER_URI 'http://irc_host_url.com/v1/oauth/tokens'
);

OS:

macOS Sequoia 15.5

DuckDB Version:

1.3.2

DuckDB Client:

DBeaver

Hardware:

No response

Full Name:

Jack Lowery

Affiliation:

Fivetran

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

Did you include all relevant data sets for reproducing the issue?

Not applicable - the reproduction does not require a data set

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions