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

Handle API returning non-existent station ID #392

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

guytepper
Copy link
Member

The API might return the train garage ID station inside the stopStations array (id 5500) - a station that is not defined in the stationsObject.
This is very rare, and when it happens we'll just use an empty string, as the current implementation crashes the request parsing logic.

For the rare cases where the API returns "ghost" stations that are not in `stationsObject`
@guytepper guytepper requested a review from planecore December 16, 2024 12:32
@guytepper guytepper merged commit 6012d03 into main Dec 16, 2024
1 check passed
@guytepper guytepper deleted the fix-non-existing-stations branch December 16, 2024 15:06
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.

1 participant