Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Api fails when not terminus is provided in the result #1

Open
stanislasgodel opened this issue Dec 12, 2018 · 1 comment
Open

Api fails when not terminus is provided in the result #1

stanislasgodel opened this issue Dec 12, 2018 · 1 comment

Comments

@stanislasgodel
Copy link

stanislasgodel commented Dec 12, 2018

There are cases when the sncf API doesn't return a terminus for train' it's documented in the api as a case occurring if the terminus is not known in the referencial of stations of transilien.
For instance, it happens regularly when trying to get the results for Paris Saint Lazare.
In that case, there's an un aught exception raised in format module . extractNode tries to call unshift on a undefined value.

@j5lien
Copy link
Owner

j5lien commented Dec 12, 2018

Thanks for the info, I'm not sure to have the time for a fix quickly but feel free to make a PR.

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

No branches or pull requests

2 participants