cakebake / node-red-contrib-alexa-remote-cakebaked

Forked for me and the community to keep dependencies up to date :)
MIT License
42 stars 6 forks source link

Error: no JSON #5

Open 4noxx opened 3 years ago

4noxx commented 3 years ago

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

image

image

jonferreira commented 3 years ago

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

marvcode commented 3 years ago

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".

bwims commented 3 years ago

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.