ewelink-api icon indicating copy to clipboard operation
ewelink-api copied to clipboard

invalid json response at https://us-api.coolkit.cc:8080...

Open dk7988 opened this issue 2 years ago • 3 comments

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

dk7988 avatar Apr 26 '22 02:04 dk7988

Check the response before trying to parse

superedmundo avatar Jun 07 '22 18:06 superedmundo

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.

gleam-ru avatar Nov 16 '22 18:11 gleam-ru

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?

wmken32 avatar Sep 13 '23 01:09 wmken32