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.91k stars 30.98k forks source link

unexpected mimetype on login #99588

Closed simonepittis closed 1 year ago

simonepittis commented 1 year ago

The problem

from today it's impossible to login and add the Tibber Integration. HA restarted, token recreated

What version of Home Assistant Core has the issue?

core-2023.8.4

What was the last working version of Home Assistant Core?

core-2023.8.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tibber

Link to integration documentation on our website

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

Diagnostics information

Logger: homeassistant.config_entries Source: components/tibber/init.py:55 First occurred: 13:12:29 (2 occurrences) Last logged: 13:13:21

Error setting up entry Simone Pittis for tibber Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/tibber/init.py", line 105, in execute return (await extract_response_data(resp)).get("data") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/tibber/response_handler.py", line 26, in extract_response_data result = await response.json() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 73, in json return await super().json(*args, loads=loads, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1104, in json raise ContentTypeError( aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain', url=URL('https://api.tibber.com/v1-beta/gql')

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/tibber/init.py", line 55, in async_setup_entry await tibber_connection.update_info() File "/usr/local/lib/python3.11/site-packages/tibber/init.py", line 138, in update_info if (data := await self.execute(INFO)) is None: ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/tibber/init.py", line 108, in execute return await self.execute( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/tibber/init.py", line 108, in execute return await self.execute( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/tibber/init.py", line 108, in execute return await self.execute( ^^^^^^^^^^^^^^^^^^^ [Previous line repeated 148 more times] File "/usr/local/lib/python3.11/site-packages/tibber/init.py", line 104, in execute resp = await self.websession.post(API_ENDPOINT, **post_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request await resp.start(conn) File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start message, payload = await protocol.read() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read await self._waiter asyncio.exceptions.CancelledError: aiohttp connection lost

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 @danielhiversen, mind taking a look at this issue as it has been labeled with an integration (tibber) you are listed as a code owner for? Thanks!

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

(message by CodeOwnersMention)


tibber documentation tibber source (message by IssueLinks)

Danielhiversen commented 1 year ago

Please try the beta for HA 2023.9

simonepittis commented 1 year ago

on HA 2023.9 Beta seems all work, No error and device OK

wartungsmonteur commented 1 year ago

Addon läuft nur noch in der Beta Version von HA ?😭