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

feat(Live.TripPlanner): handle OTP timeouts #2364

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

thecristen
Copy link
Collaborator

It turns out we weren't pattern matching to handle the %Req.TransportError{reason: :timeout} we were receiving.

Copy link
Contributor

@joshlarson joshlarson left a comment

Choose a reason for hiding this comment

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

This is a good change. I think we'd probably benefit from improving the error message, since I imagine riders aren't actually concerned about whether we can connect to "Open Trip Planner", so much as being concerned about whether we can plan a trip.

☝️ is non-blocking because having the error message at all is such a vast improvement over infinite spinner that it's worth rolling forward here.

@thecristen
Copy link
Collaborator Author

We had a better fallback error, didn't we? Lemme see if I can pull that up..

@thecristen
Copy link
Collaborator Author

thecristen commented Feb 5, 2025

image

yaaayyyy, thanks for pointing this out @joshlarson

@thecristen thecristen enabled auto-merge (squash) February 5, 2025 19:40
@thecristen thecristen merged commit b28074d into main Feb 5, 2025
17 checks passed
@thecristen thecristen deleted the cbj/trip-planner-timeout branch February 5, 2025 19:49
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