question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shark IQ Integration can't be added - Unexpected error

See original GitHub issue

The problem

Trying to add the Shark IQ Integration to my HA instance (via the Integration UI) always results in the same error message: “Unexpected error”

image

I’ve attached a stacktrace from the error log of HA core.

I’ve also followed the troubleshooting section of the integration documentation and turned off all adblockers - without luck.

What version of Home Assistant Core has the issue?

core-2021.11.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Shark IQ

Link to integration documentation on our website

https://www.home-assistant.io/integrations/sharkiq

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-11-26 22:51:03 ERROR (MainThread) [homeassistant.components.sharkiq] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/sharkiq/config_flow.py", line 54, in _async_validate_input
    info = await validate_input(self.hass, user_input)
  File "/usr/src/homeassistant/homeassistant/components/sharkiq/config_flow.py", line 32, in validate_input
    await ayla_api.async_sign_in()
  File "/usr/local/lib/python3.9/site-packages/sharkiqpy/ayla_api.py", line 97, in async_sign_in
    self._set_credentials(resp.status, await resp.json())
  File "/usr/local/lib/python3.9/site-packages/sharkiqpy/ayla_api.py", line 73, in _set_credentials
    raise SharkIqAuthError(login_result["error"]["message"])
TypeError: string indices must be integers

Additional information

Submitting the form with a wrong username/password results in the exact same error and stacktrace.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:25

github_iconTop GitHub Comments

3reactions
Draescommented, Jan 22, 2022
1reaction
funkybunchcommented, Nov 9, 2022

@ github-actions bot - get that stale label outta here. We’re about to resolve it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shark IQ Failed to Set Up · Issue #65367 · home-assistant/core
The problem The Shark IQ was working correctly yesterday at some point overnight it stopped working so I tried a reboot just to...
Read more >
Shark IQ Robot Vacuum integration stopped working - Reddit
Logs seem to show an error related to an unexpected mimetype. It was working fine yesterday which makes me think something changed on...
Read more >
Shark IQ - Home Assistant
The sharkiq integration allows you to control your Shark IQ vacuum. This platform has been tested and is confirmed to be working with...
Read more >
shark iq problems - Ristorante Liberty Sassari
In case your shark robot Shark IQ 2nd Gen (large bin) ($509 USD) - Corrected most of the problems above by adding a...
Read more >
432 startup failure post-mortems - CB Insights
Limited funding availability was evidenced in part by the 71% drop in new unicorn births — late-stage companies simply couldn't raise the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found