qistoph / MMM-nstreinen

MagicMirror² module to show Dutch train information
12 stars 4 forks source link

nstreinen, "Invalid namespace" #30

Closed D4NH closed 4 years ago

D4NH commented 4 years ago

Hi! Getting this weird api response from socket.io:

Config:

{
                      module: 'nstreinen',
                      position: 'top_center',
                      header: 'Treinen vanaf Capelle Schollevaar',
                      config: {
                              apiKey: 'primary_ns_app_api_key',
                              fromStation: 'CPS',
                              toStation: 'LEDN'
                      }
},

Error: Screenshot 2020-06-01 at 14 51 27

qistoph commented 4 years ago

I have no idea where that error is coming from.

Are there any details in the log window?

D4NH commented 4 years ago

Which log window do you mean?

More info:

image

Sadly still stuck on Loading... No trains visible

qistoph commented 4 years ago

I meant the browser's log window, the one in your picture. Does that show any errors or warnings other than the cookie misuse?

The server side log, running on your mirror, would also be interesting.

D4NH commented 4 years ago
[2020-06-04 15:26:58.332] [LOG]    Starting MagicMirror: v2.11.0
[2020-06-04 15:26:58.373] [LOG]    Loading config ...
[2020-06-04 15:26:58.387] [LOG]    Loading module helpers ...
[2020-06-04 15:26:58.390] [LOG]    No helper found for module: alert.
[2020-06-04 15:26:58.505] [LOG]    Initializing new module helper ...
[2020-06-04 15:26:58.506] [LOG]    Module helper loaded: updatenotification
[2020-06-04 15:26:58.508] [LOG]    No helper found for module: clock.
[2020-06-04 15:26:58.509] [LOG]    No helper found for module: calendar_monthly.
[2020-06-04 15:26:58.595] [LOG]    Initializing new module helper ...
[2020-06-04 15:26:58.596] [LOG]    Module helper loaded: nstreinen
[2020-06-04 15:26:58.597] [LOG]    No helper found for module: compliments.
[2020-06-04 15:26:58.598] [LOG]    No helper found for module: MMM-Unsplash.
[2020-06-04 15:26:59.923] [LOG]    Initializing new module helper ...
[2020-06-04 15:26:59.924] [LOG]    Module helper loaded: MMM-CalendarExt2
[2020-06-04 15:26:59.925] [LOG]    No helper found for module: currentweather.
[2020-06-04 15:26:59.926] [LOG]    No helper found for module: weatherforecast.
[2020-06-04 15:27:00.005] [LOG]    Initializing new module helper ...
[2020-06-04 15:27:00.006] [LOG]    Module helper loaded: newsfeed
[2020-06-04 15:27:00.007] [LOG]    All module helpers loaded.
[2020-06-04 15:27:00.373] [LOG]    Starting server on port 8080 ...
[2020-06-04 15:27:00.385] [INFO]   You're using a full whitelist configuration to allow for all IPs
[2020-06-04 15:27:00.399] [LOG]    Server started ...
[2020-06-04 15:27:00.401] [LOG]    Connecting socket for: updatenotification
[2020-06-04 15:27:00.402] [LOG]    Connecting socket for: nstreinen
[2020-06-04 15:27:00.404] [LOG]    Starting node helper for: nstreinen
[2020-06-04 15:27:00.405] [LOG]    Connecting socket for: MMM-CalendarExt2
[2020-06-04 15:27:00.406] [LOG]    Connecting socket for: newsfeed
[2020-06-04 15:27:00.408] [LOG]    Starting module: newsfeed
[2020-06-04 15:27:00.408] [LOG]    Sockets connected & modules started ...
[2020-06-04 15:27:00.409] [LOG]
Ready to go! Please point your browser to: http://0.0.0.0:8080

This is interesting. After manually starting npm run server. It shows the trains. I was using the pm2 startup script. That didn't work before.