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

Token validation failed #94

Closed EliasReuter closed 4 years ago

EliasReuter commented 4 years ago

We're connecting an IoT2040 to mindsphere with NodeRed and this node installed in it. Onboarding and uploading data works fine. But after sometime occures an token validation error. Does this node automatically refresh its token or should we do that logic in node red? In that second case, how would you recommend us to to so?

Error: Network error occured Unauthorized { "error": "token_validation_failed", "error_description": "[335deceb801f48d1b49847f8bee61223]" }

Error: Network error occured Unauthorized { "error": "token_validation_failed", "error_description": "[96004b0a4fef4b3b847946eb1f2c03bb]" }

Thank you 👍

sn0wcat commented 4 years ago

The node is donig automatic refresh of the token unless its disabled. Which version of the node are you using?

image

see also https://playground.mindconnect.rocks

sn0wcat commented 4 years ago

@EliasReuter for the case that you were using one of the earlier versions, there was a bug in the keep alive function:

https://opensource.mindsphere.io/docs/mindconnect-nodejs/troubleshooting.html#tab1anchor3 (see mitigation for versions before 3.7.0)

EliasReuter commented 4 years ago

@sn0wcat Customer didn't answer yet, but i guess they do have an earlier version of it. Thank you for this last last keep alive function. It will help.

Thank you for the support. 🥇