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

nextStation for station departures does not work #25

Closed
mlsgrnt opened this issue Feb 24, 2018 · 3 comments
Closed

nextStation for station departures does not work #25

mlsgrnt opened this issue Feb 24, 2018 · 3 comments
Labels

Comments

@mlsgrnt
Copy link

mlsgrnt commented Feb 24, 2018

This seems to be an issue on the VBB's end as the hafas api you provide also fails. To verify: the following request outlined in the documentation fails (returns empty array).

I've tried everything I can think of, but to no avail. Any ideas on how to fix this? Thanks!

# at U Kottbusser Tor, in direction U Görlitzer Bahnhof
curl 'https://2.vbb.transport.rest/stations/900000013102/departures?nextStation=900000014101&results=3'
@derhuerst derhuerst added the bug label Feb 24, 2018
@derhuerst
Copy link
Owner

I can reproduce this an have an idea why this might be the case.

@derhuerst
Copy link
Owner

Caused by two issues in combination:

  • hafas-departures-in-direction@0.1.0 is compatible with vbb-hafas@3, but has been used with vbb-hafas@4. It neither expresses it's (in)compatibilities by using peerDependencies, nor by validating input.
  • I had adapted hafas-departures-in-direction#master to vbb-hafas@4, but had not published to npm. I did this now with hafas-departures-in-direction@0.2.0.

@blydro This should work now, please confirm.

@mlsgrnt
Copy link
Author

mlsgrnt commented Feb 24, 2018

Interesting to know! Thanks so much for the quick fix! Works perfectly.

@mlsgrnt mlsgrnt closed this as completed Feb 24, 2018
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

2 participants