Closed wmcb91 closed 3 years ago
In the official Google Transit API Node.js sample the code on line 11 will throw this error: TypeError: Cannot read property 'decode' of undefined.
TypeError: Cannot read property 'decode' of undefined
// Incorrect var feed = GtfsRealtimeBindings.FeedMessage.decode(body); // Corrected var feed = GtfsRealtimeBindings.transit_realtime.FeedMessage.decode(body);
@wmcb91 Thanks for reporting this! We'll try to get this fixed.
@wmcb91 Looks like this is fixed here - https://developers.google.com/transit/gtfs-realtime/examples/nodejs-sample. Thanks for reporting!
In the official Google Transit API Node.js sample the code on line 11 will throw this error:
TypeError: Cannot read property 'decode' of undefined
.