Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: watsonx.ai | refresh token issue and implement retry mechanism #735

Merged
merged 3 commits into from
May 19, 2024

Conversation

PabloSanchi
Copy link
Contributor

Refreshing the token constantly per request threw an error in load tests (and increased the overall response time), so refresh when needed and apply a retry policy to avoid 429 (too many requests) errors.

@tzolov
Copy link
Contributor

tzolov commented May 19, 2024

Thank you @PabloSanchi

@tzolov tzolov merged commit e8f663d into spring-projects:main May 19, 2024
1 check passed
bmoussaud pushed a commit to bmoussaud/spring-ai that referenced this pull request May 27, 2024
…pring-projects#735)

* fix: refresh token only when needed and apply retry policy

* fix: remove unused import
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.

2 participants