Comments (5)
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.
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.
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:
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.
@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.
Related fix can be found here:
https://community.particle.io/t/error-when-publishing-on-local-server/19601
from spark-server.
Related Issues (20)
- OTA firmware update for Photons not working HOT 15
- Photons subscribed to SSEs do not return data HOT 1
- Subscribing to SSE using prefix filter does not work
- Installing dependencies fails HOT 3
- photon not works with the spark-server HOT 1
- Recommended Node.js version HOT 9
- Suggestion: safe mode healing / fleet management HOT 2
- SparkServer in production HOT 3
- Invalid CoAP version HOT 2
- Every time after "particle keys doctor core_id", "particle list" have no device which just added.
- Not compatible with 0.5.x firmware HOT 1
- Subscribe does not work HOT 2
- device list is not udpated after addition of new Photon
- 0.6.0-rc.2 firmware no longer able to connect to spark-server HOT 8
- What are the features that are present only on the Particle cloud ? HOT 2
- How does this compare to the cloud server?
- Give this Repo some love :)
- Date Time format for DateTime Field HOT 1
- Photon handshake decryption error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spark-server.