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: do not set query string on request retries #145

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

jdolce
Copy link
Contributor

@jdolce jdolce commented Dec 8, 2023

We have run into an issue when using this in the PagerDuty Terraform provider we get malformed URLs when a request with a query string is rate limited.

In our specific case it was a call to /members?offset=100 would result in /members?offset=100?offset=100 on the retry, which would cause a 400 to be returned.

The accompanying test shows that the url is the same every time it's called. Before the fix I could see the query string multiplying after every call.

Copy link
Collaborator

@imjaroiswebdev imjaroiswebdev left a comment

Choose a reason for hiding this comment

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

Hey @jdolce good catch! Thank you for patching this bug, this update will complement #147 to have a fully rate limit blocks fully handled. Again Thank you for your contribution. Good job! 🎉 💪🏽

@imjaroiswebdev imjaroiswebdev merged commit b3dce1e into heimweh:master Dec 12, 2023
1 check passed
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