Subway GTFS-RT Returning XML

80 views
Skip to first unread message

webm...@rideschedules.com

unread,
Jul 22, 2023, 1:37:45 AMJul 22
to mtadeveloperresources
Instead of pb.

When does this happen?

<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Name>mtagtfsfeeds</Name><Prefix></Prefix>
<Marker></Marker><MaxKeys>1000</MaxKeys>
<IsTruncated>false</IsTruncated>
<Contents><Key>btts/</Key>
<LastModified>2020-12-31T18:21:14.000Z</LastModified>
<ETag>"d41d8cd98f00b204e9800998ecf8427e"</ETag>
<Size>0</Size>
<Owner><ID>cd08f6ff9ad27a902eb5b34e4d412090f50b2ed35c8856f39a3e39434a6281fb</ID>
<DisplayName>siabbass</DisplayName></Owner>.
....
And on and on...?

How do I be sure to get the .pb instead of this?

Ben Deutsch // MTA Customer Experience

unread,
Aug 1, 2023, 11:40:28 AMAug 1
to mtadeveloperresources
Hi there -- sorry for the late reply -- just to confirm, is this still happening for you now?

webm...@rideschedules.com

unread,
Sep 5, 2023, 2:45:11 AMSep 5
to mtadeveloperresources
Yes, I am still getting the <ListBucketResult...  result.
I tried changing the Accept header to include only 'application/x-protobuf,application/octet-stream,application/x-google-protobuf'.  I didn't work.

Is there something I can do to coerce a binary response?

webm...@rideschedules.com

unread,
Sep 5, 2023, 3:18:22 AMSep 5
to mtadeveloperresources
I've traced this behavior to the request format.  It's fixed.
Reply all
Reply to author
Forward
0 new messages