derhuerst / vbb-rest

An HTTP API for Berlin & Brandenburg public transport.
https://v6.vbb.transport.rest/
ISC License
130 stars 12 forks source link

vbb rest api not working #48

Closed allaaelkhodr closed 2 years ago

allaaelkhodr commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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