We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NoRedirectPolicy
this is what we do to know it's a redirect problem:
resp, err := h.R().SetResult(&r).Get(...) if err != nil { if err.Error() == "auto redirect is disabled" { return APISubject{}, errSkip } panic(err) }
if the error of NoRedirectPolicy is exported, we can use errors.Is(err, resty.ErrNotAllowed) to match the error.
errors.Is(err, resty.ErrNotAllowed)
The text was updated successfully, but these errors were encountered:
@trim21 I'm sorry for the delayed attention here. Thanks for reaching out, it makes sense to export the error.
Sorry, something went wrong.
jeevatkm
Successfully merging a pull request may close this issue.
this is what we do to know it's a redirect problem:
if the error of
NoRedirectPolicy
is exported, we can useerrors.Is(err, resty.ErrNotAllowed)
to match the error.The text was updated successfully, but these errors were encountered: