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

add curlify on error and back off for 400s #65

Merged
merged 4 commits into from
Jun 6, 2024
Merged

Conversation

keyn4
Copy link
Contributor

@keyn4 keyn4 commented Jun 6, 2024

No description provided.

curl_command = curlify.to_curl(response.request)
logging.error(f"Response code: {response.status_code}, info: {response.text}")
logging.error(f"CURL command for failed request: {curl_command}")
raise FatalAPIError(RetriableAPIError(f"Msg {msg}, response {response.text}"))
Copy link
Member

@hsyyid hsyyid Jun 6, 2024

Choose a reason for hiding this comment

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

Why are we raising a FatalAPIError and passing a RetriableAPIError to its init function?

@hsyyid hsyyid merged commit 00f12f7 into feature/hgi-4472 Jun 6, 2024
@hsyyid hsyyid deleted the HGI-6008 branch June 6, 2024 16:38
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