growatt_api_client icon indicating copy to clipboard operation
growatt_api_client copied to clipboard

JSONDecodeError: Expecting value: line 6 column 1 (char 10)

Open OrranaLhaynher opened this issue 4 years ago • 2 comments

Hi! I started using this repository, and initially I always received the login error. So I did some research and realized that the server used for the login and password I have is oss.growatt.com. So I changed the server url, but a new error appeared and I've been trying to solve for days and nothing. The error is this -> JSONDecodeError: Expecting value: line 6 column 1 (char 10) Could someone tell me why this is?

OrranaLhaynher avatar Sep 03 '21 14:09 OrranaLhaynher

The client performs a request to the server. The server sends a response. The client expects that response to be JSON, but it isn't, so you get a JSONDecodeError.

I think oss.growatt.com is not just another server, but it has another API as well. Do you have a reseller account or something like that? The URLs that work for server.growatt.com may not work for oss.growatt.com.

Sjord avatar Sep 03 '21 14:09 Sjord

Unfortunately I don't have reseller access.

OrranaLhaynher avatar Sep 03 '21 14:09 OrranaLhaynher