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

api v2: Return errors to help diagnose faulty networks #300

Open
tahini opened this issue Nov 29, 2024 · 1 comment
Open

api v2: Return errors to help diagnose faulty networks #300

tahini opened this issue Nov 29, 2024 · 1 comment
Labels

Comments

@tahini
Copy link
Collaborator

tahini commented Nov 29, 2024

In an ideal world, the data read by trRouting would be perfect, but the world being what it is, it sometimes happen that the data is corrupted. trRouting correctly detects it and adds an error in the log, something like for example

Index out of range while parsing connection for trip on line (
My Super Line (1000))

When that happens, there is simply no data available. Routing requests return that there is no connection, no service, no nothing.

It should return that the data is corrupt and ideally highlight the faulty line so that callers can handle it correctly and let the consumers know about potential problems.

@tahini tahini added the bug label Nov 29, 2024
@tahini
Copy link
Collaborator Author

tahini commented Nov 29, 2024

cc @greenscientist Potential christmas gift for @tibobliss?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant