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

Error: String Indices must be integers #17

Open
joecarav opened this issue May 6, 2022 · 2 comments
Open

Error: String Indices must be integers #17

joecarav opened this issue May 6, 2022 · 2 comments

Comments

@joecarav
Copy link

joecarav commented May 6, 2022

Hi,

Just trying to run this to confirm I can sign in:

from sharkiqpy import get_ayla_api, OperatingModes, Properties, PowerModes

USERNAME = 'my_username'
PASSWORD = 'my_password'

ayla_api = get_ayla_api(USERNAME, PASSWORD)
ayla_api.sign_in()

and I am receiving this error:

Traceback (most recent call last):
  File "/Users/cartnj/Desktop/usefulprojects/vacuum.py", line 7, in <module>
    ayla_api.sign_in()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/sharkiqpy/ayla_api.py", line 84, in sign_in
    self._set_credentials(resp.status_code, resp.json())
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/sharkiqpy/ayla_api.py", line 73, in _set_credentials
    raise SharkIqAuthError(login_result["error"]["message"])
TypeError: string indices must be integers

Any ideas? I just started playing with this API so I apologize if I am missing something. Thanks in advance!

@DTFagus
Copy link

DTFagus commented Apr 19, 2023

Same for me... Same when using python script or the home assistant integration.

@TheLastFrame
Copy link

Hey,
since the owner of this repo hasn't really maintained it anymore a new one was created here: https://github.com/JeffResc/sharkiq

Please test if the issue also persists with this version. If so please open an issue there.

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

3 participants