Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Error: String Indices must be integers  #17

@joecarav

Description

@joecarav

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions