pgrimaud / horaires-ratp-api

Webservice pour les horaires et trafic RATP en temps réel
https://api-ratp.pierre-grimaud.fr/v4
MIT License
269 stars 30 forks source link

[HTTP500] Bus A+R if no service #73

Closed tJulianB closed 6 years ago

tJulianB commented 6 years ago

Bus 528 has no service on Sunday. This error also happens on night when there is no service, or when there is a special message.

So, for example, the call /v3/schedules/bus/528/pont+cardinet/A returns

result: {
    schedules: [
        {
            message: "PAS DE SERVICE",
            destination: "Gare Saint Lazare"
        },
        {
            message: "..................",
            destination: "Gare Saint Lazare"
        }
    ]
}

Same thing if I use the R way.

But if I use A+R way I got

result: {
    code: 500,
    message: "Internal Error"
}

Thanks !

pgrimaud commented 6 years ago

Hi @tJulianB , I just fixed it