204 No Content response on /alerts endpoint with valid configuration

18 views
Skip to first unread message

Kevin

unread,
Apr 25, 2024, 12:57:20 AMApr 25
to OpenTripPlanner Users
Encountering a 204 No Content response when accessing the alerts endpoint (/otp/routers/2/index/stops/MNT:28161/alerts) despite having a correct configuration in router-config.json. The setup specifies a frequent update interval and uses OpenTripPlanner version 2.5.0. The issue persists with no alerts returned, impacting the real-time functionality expected from the service

Expected behavior

Expected to receive real-time alerts as JSON/XML response when accessing the specified alerts endpoint.

Observed behavior

Received a 204 No Content response, indicating no data available despite the service being operational and the endpoint configured correctly in router-config.json.

Version of OTP used

OTP 2.5.0

Data sets in use

Standard GTFS and OSM PBF files

Router config and graph build config JSON

"updaters": [ { "type": "stop-time-updater", "frequency": "PT1M", "url": "https://api.[REDACTED]/gtfs-feed/2/all", "feedId": "MNT" }, { "type": "real-time-alerts", "frequency": "PT1M", "url": "https://api.[REDACTED]/gtfs-feed/2/SERVICE_ALERT", "feedId": "MNT" } ]

This is what SERVICE_ALERT returns


Message has been deleted

Kevin

unread,
Apr 25, 2024, 1:17:48 AMApr 25
to OpenTripPlanner Users
image here because it was not posted https://imgur.com/a/DX0tq9F
Reply all
Reply to author
Forward
0 new messages