Skip to content

GTFS realtime API query does not return some feeds #925

@jcpitre

Description

@jcpitre

Describe the bug

Some GTFS RT feeds are not listed when queried.
It results in integration tests periodically failing: See here

If I do:

curl -X 'GET' \
  'https://api.mobilitydatabase.org/v1/feeds?provider=AMB%20Mobilitat' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ...'

i.e. the /v1/feeds endpoint with provider AMB Mobilitat I get 2 feeds (mdb-2368 and mdb-2369) both with "data_type": "gtfs_rt". It's also the 2 feeds if I search with mobilitydatabase.org. So far so good.
But if I do the same with the /v1/gtfs_rt_feeds, I get nothing. i.e.:

curl -X 'GET' \
  'https://api.mobilitydatabase.org/v1/gtfs_rt_feeds?provider=AMB%20Mobilitat' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ...'

returns an empty list.

Steps/Code to Reproduce

See above

Expected Results

A list of 2 GTFS realtime feeds

Actual Results

An empty list.

Screenshots

No response

Files used

No response

Additional notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions