opendata-stuttgart / metaEFA

an easy to use api wrapper for EFA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whoops! Error

VincentKoehler opened this issue · comments

Sometimes requests cause a Whoops! error:
https://efa-api.asw.io/api/v1/station/5005941/departures/?format=json

Is this a bug or did I do something wrong? Thank you!

Looks like an error on the server side.

"TypeError: string indices must be integers"
main/utils.py, line 94

First guess is that efa still is a string and didn't get converted to dict correctly. No idea why this is only with this stop.
Unfortunately I currently don't have time to debug. Feel free to submit a patch if you find out.