opendata-stuttgart / metaEFA

an easy to use api wrapper for EFA
Other
33 stars 6 forks source link

Whoops! Error #13

Open VincentKoehler opened 6 years ago

VincentKoehler commented 6 years ago

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!

asmaps commented 6 years ago

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.