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

Do not retry membership on a 404 error #371

Merged
merged 2 commits into from
Nov 4, 2021

Conversation

Half-Shot
Copy link
Contributor

@Half-Shot Half-Shot commented Nov 3, 2021

@Half-Shot Half-Shot requested a review from a team November 3, 2021 16:40
Copy link
Contributor

@jaller94 jaller94 left a comment

Choose a reason for hiding this comment

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

Looks good.

I wonder if other HTTP errror codes like 400 BAD REQUEST should also return false. Other than 429 Too Many Requests none of the 4xx-codes seem recoverable.

@Half-Shot
Copy link
Contributor Author

It's tricky, in the wild I've seen recoveries from generic M_UNKNOWN / 500 requests but you're right. Maybe this needs to check for explicit recoverable errors.

@Half-Shot Half-Shot merged commit cc72c52 into develop Nov 4, 2021
@jaller94 jaller94 deleted the hs/ignore-on-404-membership branch November 4, 2021 09:58
@jaller94
Copy link
Contributor

jaller94 commented Nov 4, 2021

Yeah, an HTTP 500 should be recoverable, but the 4xx-errors are almost all not recoverable.

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.

MembershipQueue should handle MatrixHttpClient (REQ-2961) { errcode: 'M_UNKNOWN', error: 'Not a known room' }
2 participants