Closed derf closed 3 years ago
This is likely a problem with TransportController::getHafasTrip
. This function is called both by /trains/trip
and /trains/checkin
and requests the train data from the DB API, if it cannot find this train in the database. @HerrLevin, can you help why this is broken?
Note to self: A similar behavior might occur with the TrainTrip
-method while looking for a trainstation. This should also be addressed in future bugfixes.
Describe the bug Checking into a train using
/trains/checkin
and a valid tripID, start and stop station results in HTTP 500 unless a request to/trains/trip
is sent first.To Reproduce
-> HTTP 500 "Server Error"
-> works fine
Expected behavior
/trains/checkin
should work regardless of previous/trains/trip
requests.