skydiver/ewelink-api

{ error: 500, msg: 'SyntaxError: Unexpected token < in JSON at position 0' }

Picalz opened this issue · 1 comments

When trying to login with await connection.getCredentials() :

{
  error: 500,
  msg: 'SyntaxError: Unexpected token < in JSON at position 0'
}

Has EweLinks backend maybe changed? As this issue just randomly started after no modifications.

I've rectified the issue. There was another device using this lib 'logged in' to ewelink that was causing an issue.
I imaging it was invalidating old auth keys repetitively, or waiting for the last authenticated lib user to disconnect.
Stopping all clients and restarting the desired one worked for me 👍