ewelink-api
ewelink-api copied to clipboard
invalid json response at https://us-api.coolkit.cc:8080...
hello, i keep getting the following error when my node app tries to login.
FetchError: invalid json response body at https://us-api.coolkit.cc:8080/api/user/login reason: Unexpected token < in JSON at position 0
This seems to have started either yesterday or today. every now and then (randomly) it will be able to login and everything starts working fine then after 'X' amount of time my app no longer as the ability to refresh my plug data. So I then close my node app and re open it i get the above error message.
I was wondering if anyone knows what is going on here?
thanks for the help -Nick
Check the response before trying to parse
Same issue. I had same issue. Debugging leaded me to conclusion that server in selected region ("us" by default) is on maintains. Changing target region (to "eu" in my case) resolved the issue.
I faced this issue yesterday. I can't fix it even I change the region. Does any way to fix it? Or it's the server issue, I just need to wait?