-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
[🐛 BUG] - Transit module stopped working #33
Comments
Thank you for your feedback!' first issue |
@nipper2000h thank you for posting the bug. I am looking into this and seeing if I am able to re-create the issue you speak of. It might take me a few days or more. FWIW: I have seen the promise reject error before, that I believe is due to polling the API to frequently with your API key. As of know, I am not sure of what the rate limit is or even if one exists. I'll continue looking into it. Please let me know if the module begins working prior to me resolving this issue. Thanks! |
Thanks a lot for being so responsive and checking this out. I love this module and find it very functional, thanks again for writing it. As of today it is still down and pm2 logs are still showing the same message.. I made a second account with MTA and used a different API key but still no luck. Is yours working? What is the polling rate you are using? |
I'm having a similar issue where no Train data is being pulled anymore. The issue started occurring about 4 days ago. |
@NickEngmann thank you for your feedback. Will you and @nipper2000h please share with me, which version of In order for me to remedy/fix this bug, I would like to try and figure out what changes were introduced, which should allow me to update this module for myself and all of you. Thanks! |
@Elaniobro I am currently on MM version 2.10.1 and I'm running my MagicMirror server only. |
@NickEngmann Thank you for this information. In reading the #1973 it looks like v2.11.0 actually broke some modules due to how the socket.io was being referenced. v2.12.0 resolved that. I am wondering if a previous version of MagicMirror still works with this module or if v.2.12.0 works for you. |
I'm running 2.11.0. I updated to version 2.12.0 and still no luck. I don't see anything in the logs after updating. |
@NickEngmann & @nipper2000h I made some slight adjustments, but the module is still not populating. I do see the fetch trying to get data but the response in the payload is empty.
For some reason, just not getting any data |
I did receive an email back in May saying that the NYC-MTA was changing its URL endpoints, could that somehow affect how this module functions? |
@NickEngmann would you please post the e-mail? I never received one. I also posted to the google forum and was told that the endpoint did in fact change, which would account for the breakage in the module. Once I re-connect it, you should be back up and running. I just need to find out what the new endpoint is. |
Here is a screenshot of the e-mail they sent out. Looks like the new endpoint is https://api.mta.info/ |
The new API is going to require a complete re-write of this module as far as I can tell...... unless I am missing something. It seems like the new api endpoint does not have the same data contract. Not to mention that the dependencies I use, as far as I can tell, will not be supporting the new API: "mta-realtime-subway-departures": "0.0.13"
"mta-subway-stations": "0.0.2", Thank you for the screenshot of the e-mail @NickEngmann, I see this as a challenge that I openly accept, but I am afraid this will no longer be a 1-2-3 fix. 😢 |
I've opened ericandrewlewis/mta-realtime-subway-departures#4 to switch that package from |
@kurtraschke thank you for that PR, and thank you @ericandrewlewis for your module. |
Describe the bug
The module stopped working after a change from the data provider
To Reproduce
I have opened a troubleshooting thread here:
https://forum.magicmirror.builders/topic/13185/transit-module-stopped-working/1?_=1593886364430
Others have confirmed the module no longer works as intended.
Expected behavior
The next three trains are displayed in a countdown clock style.
** Actual behavior**
No trains are displayed. "Next train" is displayed but no trains load.
Screenshots
Screenshot is here:
https://forum.magicmirror.builders/topic/13185/transit-module-stopped-working/1?_=1593886364430
Platform (please complete the following information):
Configuration
`/* Magic Mirror Config Sample
*
*/
var config = {
address: "localhost", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out or empty, is "localhost"
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
0
Ssdetweil about 18 hours ago `
Additional context
Error message from pm2 logs:
2020-06-30 09:41:59.974] [ERROR] (node:882) UnhandledPromiseRejectionWarning: Error: Error: Illegal group end indicator for Message .transit_realtime.FeedMessage: 7 (not a group) 0|mm | at /home/pi/MagicMirror/modules/MMM-nyc-transit/node_helper.js:106:15
The text was updated successfully, but these errors were encountered: