You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Malaysia's GTFS feeds neither returns a ''Content-Type: application/zip'' header nor ends in a .zip extension (the API server performs 2 HTTP redirects which then contains the .zip extension).
We have discussed this issue today during the developer meeting (which you are welcome to attend if you wish).
We do not plan to fix this any time soon due to limited development resources. We recommend that you either use one of the workarounds you suggested, or create a pull request to perform URI validation later in the process.
Thank you, I've written to the government provider of the GTFS feed to return the correct content-type and if I don't make any progress there I'll dive into the code.
Malaysia's GTFS feeds neither returns a ''Content-Type: application/zip'' header nor ends in a .zip extension (the API server performs 2 HTTP redirects which then contains the .zip extension).
URLs for testing can be found here: https://developer.data.gov.my/realtime-api/gtfs-static
Thus, the following line of code rejects GTFS API URLs for Malaysia if configured in ''build-config.json''.
OpenTripPlanner/application/src/main/java/org/opentripplanner/datastore/https/HttpsDataSourceRepository.java
Line 68 in 6e8ccff
There are some workarounds;
I have some suggestions to make this work:
The text was updated successfully, but these errors were encountered: