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 too many redirections #1797

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Fix too many redirections #1797

merged 2 commits into from
Oct 1, 2024

Conversation

smadbe
Copy link
Contributor

@smadbe smadbe commented Sep 30, 2024

Description

We had in the crash reporting some "Too many redirections (unexpected)" reported from time to time for months. That looked like a bad smell as it is "unexpected".

Actually, the previous condition based on this.itemState$.pipe( was wrong as we may two successive "subscribe" without being the breadcrumbs failing twice, but just failing once and having another part of the state (item, results) changing. So it was wrongly considered as two failures.

Also, now, hasRedirected is resetted as soon as breadcrumb returns something else than a forbidden/not-found response, not just with a full success of the state.

@smadbe smadbe force-pushed the fix-too-many-redirections branch from 6c2cc05 to 1f72275 Compare September 30, 2024 15:08
@smadbe smadbe requested review from Iloveall September 30, 2024 15:57
@smadbe
Copy link
Contributor Author

smadbe commented Sep 30, 2024

E2e tests are not passing, but that looks like the usual problem. Isn't it?

@smadbe smadbe merged commit 1531193 into master Oct 1, 2024
7 of 8 checks passed
@smadbe smadbe deleted the fix-too-many-redirections branch October 1, 2024 12:43
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