Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get api_mix_info to work #68

Open
rowanbradley opened this issue Aug 6, 2023 · 1 comment
Open

Can't get api_mix_info to work #68

rowanbradley opened this issue Aug 6, 2023 · 1 comment

Comments

@rowanbradley
Copy link

When I try to use api.mix_info, I get this:

  Traceback (most recent call last):
    File "D:\XPS_8700 Extended Files\Users\RowanB\Documents\Inetpub\www.sylvesterbradley.org\public_html\growattxxx.py", line 57, in <module>
      mix_info = api.mix_info(mix_id)
                 ^^^^^^^^^^^^^^^^^^^^
    File "c:\python311\Lib\site-packages\growattServer\__init__.py", line 273, in mix_info
      data = json.loads(response.content.decode('utf-8'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "c:\python311\Lib\json\__init__.py", line 346, in loads
      return _default_decoder.decode(s)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "c:\python311\Lib\json\decoder.py", line 337, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "c:\python311\Lib\json\decoder.py", line 355, in raw_decode
      raise JSONDecodeError("Expecting value", s, err.value) from None
  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  
  D:\XPS_8700 Extended Files\Users\RowanB\Documents\Inetpub\www.sylvesterbradley.org\public_html>

What am I doing wrong?

Thanks - Rowan

@flopp999
Copy link

I also have this error.
I will try to understand what is going wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants