Coder Social home page Coder Social logo

Comments (5)

dmiddlecamp avatar dmiddlecamp commented on August 11, 2024

Hi @robin13 ,

Thanks for the ping! Yes I suspect they are related, it's a problem with the crypto library and newer versions of node. Sorry we haven't fixed this yet, everyone has been crazy busy, but changing node version or applying that patch to the local server should fix it.

Thanks,
David

from spark-server.

robin13 avatar robin13 commented on August 11, 2024

Yes - applying the patch works.

There is still the odd output:

onSocketData called, but no data sent.
routeMessage got a NULL coap message  { coreID: '3e0023000747343232363230' }

But I am now getting publish events streaming. :)

from spark-server.

chuank avatar chuank commented on August 11, 2024

@robin13, @dmiddlecamp,

Reporting similar issues with the NULL CoAP message on my local setup running Node 4.2.6 LTS, including the patch from particle-iot/spark-protocol#14.

Also isolated this issue a bit further: this error shows up when a Photon is made to publish to the local cloud. Every time a publish is executed, the breathing cyan blinks and the server logs the 'NULL CoAP' error, before returning to breathing cyan right after. The publish event does make it through, but due to this error, there's a bit of a lag waiting for the Photon to recover the connection to the cloud. @robin do you notice your Photons blinking cyan when it publishes?

I tried using curl to manually publish the same event to the local cloud, and that works fine without error.

Screencap of my server log with a Photon repeatedly publishing and triggering the error on the server:
image

Apologies for not being able to help beyond merely posting details of the errors; I just don't have the ability nor resources to dive into this. I'm just hoping that someone will be able to corroborate my findings and help to get to the bottom of this.

edit: similar, earlier discussion also referenced here #61 but I think this current issue is more specific to the NULL CoAP message.

from spark-server.

chuank avatar chuank commented on August 11, 2024

@robin13 when your device(s) publish an event, do you notice it disconnecting briefly (blinking cyan) right after, before reconnecting?

Also, what version of node are you using?

from spark-server.

chuank avatar chuank commented on August 11, 2024

Related fix can be found here:
https://community.particle.io/t/error-when-publishing-on-local-server/19601

from spark-server.

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.