Error when querying passing times for a replaced DatedServiceJourney
vpaturet opened this issue · comments
Vincent Paturet commented
In the TransModel API, when querying the passing times of a replaced dated service journey:
query GetDatedServiceJourney($datedServiceJourneyId: String!) {
datedServiceJourney(
id: $datedServiceJourneyId
) {
id
replacementFor {
id
serviceJourney {
passingTimes {
departure {
time
dayOffset
}
quay {
stopPlace {
id
name
}
}
}
}
}
}
}
An exception is thrown:
{
"errors": [
{
"message": "Exception while fetching data (/datedServiceJourney/replacementFor[0]/serviceJourney/passingTimes) : Cannot invoke \"org.opentripplanner.transit.model.timetable.TripTimes.getNumStops()\" because \"times\" is null",
"locations": [
{
"line": 9,
"column": 9
}
],
"path": [
"datedServiceJourney",
"replacementFor",
0,
"serviceJourney",
"passingTimes"
],
"extensions": {
"classification": "DataFetchingException"
}
}
],
"data": {
"datedServiceJourney": null
}
Expected behavior
The query should return the passing times of the replaced DSJ
Version of OTP used (exact commit hash or JAR name)
dev-2.x branch
Data sets in use (links to GTFS and OSM PBF files)
Norwegian NeTEx dataset