Skip to content

Service Alerts Not Showing Up onebusaway-api-webapp #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
oceandrive opened this issue Jun 15, 2023 · 1 comment
Open

Service Alerts Not Showing Up onebusaway-api-webapp #344

oceandrive opened this issue Jun 15, 2023 · 1 comment

Comments

@oceandrive
Copy link

oceandrive commented Jun 15, 2023

I am not seeing any description populated for the 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 ?

@shivammm21
Copy link

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 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants