Service Alerts Invalid

I am getting the following error when decoding the GTFS-RT: entity.alert.cause: enum value expected The cause and effect enums are being defined as 0. The enum values start at 1 and not zero. Can you please look into it

Comments

  •  
    As you can see by the proto definition 0 is an invalid enum value for cause and effecr https://github.com/google/transit/blob/5ce5f0400c349eaf25cb250d4c49bbeb81af7a9a/gtfs-realtime/proto/gtfs-realtime.proto#L406
    Posted by Hidden Tue, 17 Dec 2019 14:51:01 GMT
  •  
    Thank you for your feedback. We have forwarded your query to our developers to see if it’s a quick fix or not. Either way we’ll look to have an update back to you in the next 2 weeks.
    Posted by Hidden Thu, 19 Dec 2019 20:05:47 GMT
  •  
    The initial investigation has been done but we would like to confirm how you are using using the API. Could you please provide the piece of code you are using so we can try to reproduce the issue?
    Posted by Hidden Mon, 13 Jan 2020 21:46:50 GMT
  •  
    We are using these bindings: https://github.com/MobilityData/gtfs-realtime-bindings/blob/master/nodejs/README.md In order to parse the protobuf that we are getting from your apis and there is a zero in the enum values which are 1 indexed not 0 indexed
    Posted by Hidden Mon, 13 Jan 2020 22:29:36 GMT


You're not signed in. Please sign-in to report an issue or post a comment.