Skip to content
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

GTFS connector doesn't seem to work on feeds with content-encoding: gzip #3

Open
Zay opened this issue Oct 9, 2019 · 0 comments
Open

Comments

@Zay
Copy link

Zay commented Oct 9, 2019

I've tested release 5 on ArcGIS GeoEvent server 10.6.1, and it worked with the sample url.

Then I tried the Dutch realtime feed for public transportation: http://gtfs.ovapi.nl/nl/vehiclePositions.pb
The count on this connector stays 0.

Then I thought it might be some whitelist, proxy issue and tried another gtfs feed: http://rtu.york.ca/gtfsrealtime/VehiclePositions
This one works fine, so I compaired the two and noticed a difference in headers.

response for york.ca:
Content-Type: application/x-google-protobuf
Date: Wed, 09 Oct 2019 09:50:06 GMT
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked

response for ovapi.nl
Content-Encoding: gzip
Date: Wed, 09 Oct 2019 09:40:04 GMT
ETag: "5d9daaf0=80ddb"
Last-Modified: Wed, 09 Oct 2019 09:40:00 GMT
Server: Cherokee/1.2.104 (UNIX)
Transfer-Encoding: chunked
Vary: Accept-Encoding

I cannot see anything in the code that looks at encoding, so I'm assuming the code assumes the content is raw instead of looking at the content-encoding.

Kind Regards,
Casper Span
Tensing - The Netherlands

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

1 participant