home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.83k stars 30.91k forks source link

Error setting up entry Renault for renault #87297

Closed mathieucarbou closed 1 year ago

mathieucarbou commented 1 year ago

The problem

In the logs:

Logger: homeassistant.config_entries
Source: components/renault/renault_hub.py:85 
First occurred: 15:10:11 (1 occurrences) 
Last logged: 15:10:11

Error setting up entry Renault for renault
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/renault/__init__.py", line 28, in async_setup_entry
    await renault_hub.async_initialise(config_entry)
  File "/usr/src/homeassistant/homeassistant/components/renault/renault_hub.py", line 62, in async_initialise
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/components/renault/renault_hub.py", line 85, in async_initialise_vehicle
    assert vehicle_link.vehicleDetails is not None
AssertionError

What version of Home Assistant Core has the issue?

core-2023.2.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Renault

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @epenet, mind taking a look at this issue as it has been labeled with an integration (renault) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `renault` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign renault` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


renault documentation renault source (message by IssueLinks)

epenet commented 1 year ago

Please enable full debug logs and post the results:

logger:
  default: info
  logs:
    homeassistant.components.renault: debug
    renault_api: debug
mathieucarbou commented 1 year ago

I will as soon as I can reproduce it :-)

mathieucarbou commented 1 year ago

So i didn't see it after many restarts for now...

mathieucarbou commented 1 year ago

So I got another "Error setting up entry Renault for renault" just now again after a normal HA restart, but this time, another stack trace.

This is completely random so hard for me to send you more details...

Logger: homeassistant.config_entries
Source: components/renault/renault_hub.py:46 
First occurred: 23:37:59 (1 occurrences) 
Last logged: 23:37:59

Error setting up entry Renault for renault
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/renault/__init__.py", line 18, in async_setup_entry
    login_success = await renault_hub.attempt_login(
  File "/usr/src/homeassistant/homeassistant/components/renault/renault_hub.py", line 46, in attempt_login
    await self._client.session.login(username, password)
  File "/usr/local/lib/python3.10/site-packages/renault_api/renault_session.py", line 59, in login
    response = await gigya.login(
  File "/usr/local/lib/python3.10/site-packages/renault_api/gigya/__init__.py", line 57, in login
    await request(
  File "/usr/local/lib/python3.10/site-packages/renault_api/gigya/__init__.py", line 38, in request
    gigya_response: models.GigyaResponse = schema.loads(response_text)
  File "/usr/local/lib/python3.10/site-packages/marshmallow/schema.py", line 755, in loads
    data = self.opts.render_module.loads(json_data, **kwargs)
  File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.10/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)
issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.