mindsphere / node-red-contrib-mindconnect

Node-RED Agent for the MindConnect API (community driven project)
https://opensource.mindsphere.io/docs/node-red-contrib-mindconnect/index.html
MIT License
48 stars 1 forks source link

IOT2050 - 4G - Network error : Socket hang up #160

Closed ikramid closed 2 years ago

ikramid commented 2 years ago

Describe the bug Using a 4G mPCIe card (TELIT LE910CA-EU) on IOT2050, the onboarding was successful but when trying to push some data, the following error occured : Error: Network error occured Network error occured request to https://southgate.eu1.mindsphere.io/api/agentmanagement/v3/agents/567d2fb9737848fe9743cc4f682c5efd/dataSourceConfiguration failed, reason: socket hang up

Additional context The internet is working very well with other nodes on Node-red, but its speed is low : approx. 9Mbit/s for download and 0.4Mbit/s for upload (the speed test was done using speedtest-cli) The same flow was tested using a wired network and it worked pretty well.

Node-RED version: v1.2.7 MindConnect Node-RED Agent: v3.12.0

sn0wcat commented 2 years ago

@ikramid This is unfortunately a network issue which the node-RED agent has no control over. The initial onboarding of MindSphere Agents also relies quite on the network stability because during that time the initial secrets are exchanged and token rotation is established, so that network issues during this time can cause a lot of problems. Try to offboard the agent and onboard it again as described here, but you will probably have to try to get a better internet connection...

https://opensource.mindsphere.io/docs/mindconnect-nodejs/troubleshooting.html#tab1anchor5