Skip to content

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

Merged
tzolov merged 3 commits intospring-projects:mainfrom
PabloSanchi:main
May 19, 2024
Merged

Fix: watsonx.ai | refresh token issue and implement retry mechanism#735
tzolov merged 3 commits intospring-projects:mainfrom
PabloSanchi:main

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
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