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

Liveboards give undocumented response codes #13

Open
JoshuaMoelans opened this issue Apr 8, 2022 · 1 comment
Open

Liveboards give undocumented response codes #13

JoshuaMoelans opened this issue Apr 8, 2022 · 1 comment

Comments

@JoshuaMoelans
Copy link

The only response documented is the '200' code, but while testing I received two different types of error:

The first one happens when entering a non-existing station (like Retie). It returns a reasonable error, just like the connections API. However, this is not a response code mentioned in the liveboard docs.
image

The second one is a little strange; since getting a connection to Vienna (ex: Brussels → Vienna) works, but somehow the station is not recognized for the liveboard request. It returns the following:
image

I stumbled upon these by testing out the API, and would be interested in adding these response codes to the docs myself (if it is not too difficult).

@Bertware
Copy link
Member

The first one is a normal case, and the 404 result should have been documented. The second case seems like there is an issue with the response from the internal API used to obtain the data. It looks like that internal API is listing stations without an id, which would need to be handled correctly by the iRail API

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

No branches or pull requests

2 participants