GithubHelp home page GithubHelp logo

Comments (4)

vielmetti avatar vielmetti commented on August 22, 2024

Just saw this exact problem happen:

23 May 13:14:31 - [red] Uncaught Exception:
23 May 13:14:31 - SyntaxError: Unexpected token /
    at Object.parse (native)
    at IncomingMessage.<anonymous> (/opt/node-red-0.10.6/node_modules/node-red-node-web-nodes/weather/weather.js:79:37)
    at IncomingMessage.emit (events.js:117:20)
    at _stream_readable.js:944:16
    at process._tickCallback (node.js:448:13)

as noted at https://registry.hub.docker.com/u/nieleyde/rpi-nodered/

from node-red-web-nodes.

dceejay avatar dceejay commented on August 22, 2024

Hi, I think we do catch an overall parse error - so it must be returning partially valid data to get that far.. - Is there a certain town/city lat/lon that provokes the error more easily ? - so i can see what is actually breaking it.

In the meantime I have pushed a fix (and republished to npm) with more checking for bad data.

from node-red-web-nodes.

vielmetti avatar vielmetti commented on August 22, 2024

I'm monitoring Ann Arbor Michigan and Detroit Michigan on a Raspberry Pi which has Node-RED running under Docker. I'm still sorting out Docker and how it's supposed to work...but once I do it should be convenient for testing things out.

from node-red-web-nodes.

dceejay avatar dceejay commented on August 22, 2024

With the extra traps in place I do see occasional bad JSON responses - so hopefully no fixed. Going to close for now. please re-open if you see otherwise

from node-red-web-nodes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.