Hi,
This seems to have worked yesterday, but today the TripUpdate.pb and VehiclePosition.pb protobufs seem to be producing decoding errors
Code
import gtfs_realtime_pb2
import requests
feed = gtfs_realtime_pb2.FeedMessage()
feed.ParseFromString(response.content)
Result
Traceback (most recent call last):
File <redacted>, line 6, in <module>
feed.ParseFromString(response.content)
google.protobuf.message.DecodeError: Error parsing message
I tried regenerating the latest proto file from Google's GTFS specs, but I get the same error.
Although, the Alerts.pb does work. So this seems like some kind of schema change perhaps? The content coming through does look like a collection of protobuf bytes, and getting a 200, it just can't parse it into FeedMessage.
Any help is appreciated!
Thanks,
PJ