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

precheck|poll expose API error if the status_locator is not code #78

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

magodo
Copy link
Owner

@magodo magodo commented Dec 1, 2023

This PR modifies the error handling of precheck(_xxx).*.api and poll(_xxx), in which the status_locator is not code. This means it is polling a value in either in the header or in the body, which assumes the GET operation of this poll succeeded. Therefore, we shall add the code to ensure this, as otherwise if the GET failed but we didn't check, the error message will be a bit out-of-topic (see #76 for an example).

Fix #76

@magodo magodo added the enhancement New feature or request label Dec 1, 2023
@magodo magodo merged commit 4e61661 into main Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On error 401 - precheck does not respond with an access denied
1 participant