Skip to content
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] - Data fetch erroring out #106

Open
rakeshavi opened this issue Sep 13, 2024 · 0 comments
Open

[🐛 BUG] - Data fetch erroring out #106

rakeshavi opened this issue Sep 13, 2024 · 0 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@rakeshavi
Copy link

Describe the bug
Loading the MTA module on the Mirror seems to throw the following error and the MTA block on the mirror stays black.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'MagicMirror Module'
  2. Start Server
  3. Wait a couples of mins (update interval) for the Module to talk to the MTA API / Feed (This seems to be happening
  4. See error

Expected behavior
Get the update of the train timing

** Actual behavior**

[ERROR] (node:88236) UnhandledPromiseRejectionWarning: Error: Error: invalid wire type 4 at offset 1
    at /Users/avirakesh/Programming/MagicMirror/modules/MMM-nyc-transit/node_helper.js:187:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 
[2024-09-13 16:25:03.876] [ERROR] (node:88236) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) 
[2024-09-13 16:26:03.856] [ERROR] (node:88236) UnhandledPromiseRejectionWarning: Error: Error: invalid wire type 4 at offset 1
    at /Users/avirakesh/Programming/MagicMirror/modules/MMM-nyc-transit/node_helper.js:187:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 
[2024-09-13 16:26:03.856] [ERROR] (node:88236) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3) 
[2024-09-13 16:27:03.866] [ERROR] (node:88236) UnhandledPromiseRejectionWarning: Error: Error: invalid wire type 4 at offset 1
    at /Users/avirakesh/Programming/MagicMirror/modules/MMM-nyc-transit/node_helper.js:187:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 
[2024-09-13 16:27:03.866] [ERROR] (node:88236) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4) 
[2024-09-13 16:28:03.850] [ERROR] (node:88236) UnhandledPromiseRejectionWarning: Error: Error: invalid wire type 4 at offset 1
    at /Users/avirakesh/Programming/MagicMirror/modules/MMM-nyc-transit/node_helper.js:187:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 
[2024-09-13 16:28:03.850] [ERROR] (node:88236) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5) 

Screenshots
If applicable, add screenshots to help explain your problem.
image

Platform (please complete the following information):

  • Node Version: 10.8.2
  • Web Browser/Electron version: (Latest) - unsure how to get electron version
  • Hardware [e.g. Raspberry Pi 2/3, Windows, Mac, Linux, System V UNIX]: Mac

Configuration
What does the used config.js file look like? Don't forget to remove any sensitive information!

{
            module: 'MMM-nyc-transit',
            position: "top_right",
            header: "Next Train",
            config: {
            //   apiKey: 'YOUR_KEY_HERE',
            //   displayType: 'list',
              mtaType: 'train',
              stations: [
                {
                  stationId: 223,
                  walkingTime: 5,
                  dir: {
                      upTown: false,
                      downTown: true
                  }
                },
                {
                    // 59th
                    stationId: 613,
                    walkingTime: 10,
                    dir: {
                        upTown: true,
                        downTown: true
                    }
                }
              ],
              updateInterval: 300000
            }
        },

Additional context
Add any other context about the problem here.

@rakeshavi rakeshavi added the 🐛 bug Something isn't working label Sep 13, 2024
@rakeshavi rakeshavi changed the title [🐛 BUG] - Please put your title here. [🐛 BUG] - Data fetch erroring out Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants