Service Alerts Not Showing Up onebusaway-api-webapp
I am not seeing any description populated for the <Situation> element when I run api/where/arrivals-and-departures-for-stop API call.
<situationIds> <string>1_Demo</string> </situationIds>
On my feed I am seeing that alerts are being read.
[ServiceAlertsServiceImpl.java:542] : updateReferences complete with 0 agency alerts, 0 route and stop alerts, 19 route alerts, and 1 distinct alerts
When I run /api/where/situation/1_Demo.xml?key=OBAKEY&minutesAfter=90 API call I do not see the description field being populated.
<data class="entryWithReferences"> <references/> <entry class="situation"> <id>1_Demo</id> <creationTime>1686841560949</creationTime> <activeWindows> <timeRange> <from>1685422800</from> <to>1688101200</to> </timeRange> <timeRange> <from>1685422800</from> <to>1688101200</to> </timeRange> </activeWindows> <reason>UNKNOWN_CAUSE</reason> <allAffects> <affects> <routeId>1_507</routeId> </affects> <affects> <routeId>1_903</routeId> </affects> </allAffects> <severity>noImpact</severity> </entry> </data> </response>
Am I looking at the correct API call to get the service alerts ?
Hi Team,
I am experiencing an issue where service alerts are not displaying correctly when calling the api/where/arrivals-and-departures-for-stop API.
Issue Details:
- The <situationIds> element is present in the response, but no description is populated.
- The logs indicate that alerts are being read (updateReferences complete with 0 agency alerts, 0 route and stop alerts, 19 route alerts, and 1 distinct alert).
- When making a request to /api/where/situation/1_Demo.xml?key=OBAKEY&minutesAfter=90, the response does not contain a populated
field.
Questions & Next Steps:
- Am I using the correct API call to retrieve service alert descriptions?
- Could there be an issue with how descriptions are being stored or retrieved?
- Please assign this issue to me so I can investigate further and propose a fix.
Looking forward to your feedback.
Best, Shivam Thorat @shivammm21