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

vbb rest api not working #48

Closed
allaaelkhodr opened this issue Nov 29, 2021 · 2 comments
Closed

vbb rest api not working #48

allaaelkhodr opened this issue Nov 29, 2021 · 2 comments
Labels

Comments

@allaaelkhodr
Copy link

Hi,

I'd like to use this vbb rest api but it's not working right now.
For example, I'm trying to get the nearby stations with "https://v5.vbb.transport.rest/stops/nearby?latitude=52.4988&longitude=13.3960".
The result of this is only "502 Bad Gateway".

Looking forward to your reply.

@derhuerst
Copy link
Owner

For an unknown reason, the underlying HAFAS API has been sending JSON with the content-type: application/x-msdos-program header, which is why v5.vbb.transport.rest had been down, but this is not reproducible from my home internet connection, just from v5.{bvg,db,hvv,vbb}.transport.rest's server. 🙄🤔

I have disabled the content-type check now, it should be working again.

@derhuerst
Copy link
Owner

Please reopen if it is down again (for more than a few minutes).

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