node-red-contrib-alexa-remote-cakebaked icon indicating copy to clipboard operation
node-red-contrib-alexa-remote-cakebaked copied to clipboard

Error: no JSON

Open 4noxx opened this issue 3 years ago • 3 comments

like in the older remote2 plugin, i get this both errors sometimes...

image

image

4noxx avatar Feb 28 '21 17:02 4noxx

Similar here, been battling this for ages and can't understand what's causing it or why.

I normally don't get it during authentication though but while running routines. Same commands, sometimes works for weeks, other times fails every day

jonferreira avatar Feb 28 '21 21:02 jonferreira

Same here... I switched from node-red-contrib-alexa-remote2 to this repo, but getting same authentication failures. Failed to load... "No JSON". then after several attempts, I get the message "Authentication failed: "Timeout".

marvcode avatar Mar 21 '21 23:03 marvcode

What I find works for me is the following workaround:

  1. In every flow with an Alexa Remote routine, I use a catch node specifying all of them.
  2. I use a switch node to examine the errors, e.g.no Json, Authentication failed: "no body", etc and execute an "initialise"
  3. if it's an error I haven't checked for, it goes to the debug line. If re-initalising cures it, it goes in the check list.

bwims avatar Apr 02 '21 13:04 bwims