Skip to content

fix: RAPID-4589 credentials lost after a prolonged period of time#228

Merged
jorgeparavicini merged 5 commits into
mainfrom
feat/custom-generation
Mar 20, 2025
Merged

fix: RAPID-4589 credentials lost after a prolonged period of time#228
jorgeparavicini merged 5 commits into
mainfrom
feat/custom-generation

Conversation

@jorgeparavicini

Copy link
Copy Markdown
Contributor

No description provided.

@LinoGiger

Copy link
Copy Markdown
Collaborator

image
i'm geting a bunch of errors like this under the api client. did you touch those?

@jorgeparavicini

Copy link
Copy Markdown
Contributor Author

Did you update dependencies? I've added a new package

@LinoGiger

Copy link
Copy Markdown
Collaborator

yes

@jorgeparavicini jorgeparavicini force-pushed the feat/custom-generation branch from cb709d6 to 166d45c Compare March 20, 2025 10:01

@LinoGiger LinoGiger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

it seems to work for me now, but there seem to be some issues with the type checking? - did you adjust the dependencies?

Comment thread src/rapidata/api_client/rest.py Outdated

@kannwism kannwism left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any token refetching logic. Is that OAuth2Session handling this internally?

Comment thread src/rapidata/rapidata_client/rapidata_client.py Outdated
Comment thread src/rapidata/api_client/rest.py Outdated
@jorgeparavicini

Copy link
Copy Markdown
Contributor Author

I don't see any token refetching logic. Is that OAuth2Session handling this internally?

Exactly. It is explained here how it works:
https://docs.authlib.org/en/latest/client/oauth2.html#refresh-auto-update-token

@LinoGiger LinoGiger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to work for me

@jorgeparavicini jorgeparavicini merged commit a95613e into main Mar 20, 2025
@jorgeparavicini jorgeparavicini deleted the feat/custom-generation branch March 20, 2025 13:47
LinoGiger pushed a commit that referenced this pull request Jul 8, 2026
authlib was pinned to an exact ==1.6.5 incidentally by the uv migration (#407),
which froze the then-resolved version. It was originally added in #228 as a
flexible ^1.5.1 for the OAuth2 refresh-token client and has no compatibility
guard requiring an exact version. An exact pin is especially harmful in a
published SDK because it forces dependency conflicts on downstream users.

Relax to >=1.6.5,<2 (matching the original caret intent, floored at the
currently-tested version). Verified the range resolves and that the latest 1.x
(1.7.2) imports the OAuth2Client/OAuthError used by the SDK cleanly under the
existing httpx<0.29 constraint.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: RapidPoseidon <poseidon@rapidata.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants