-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Attempt to decode JSON with unexpected mimetype: text/plain #326
Comments
Having the same issue and device/versions as @IMakeTP |
I have this issue also LogsLogger: custom_components.nest_protect Unknown pynest exception. Please create an issue on GitHub with your logfile. Updates paused for 1 minute. The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Please update to v0.4.0b5 and let me know if this issue is still present. |
Hi @iMicknl, thanks for the update but stupid question. How do I upgrade? I uninstalled the v0.4.0b4 package from HA, went to the integration again but it reinstalled v0.4.0b4 and not v0.4.0b5. I'm obviously doing something wrong here.. thanks! |
@martymart8864 have you pressed "Update information"? Selecting "Redownload" should show the latest version. |
Thanks again @iMicknl, got it now. I'll let it run for a a few days and check if I still get the error! |
Hi @iMicknl Still given me an error message running version 0.4.0b5 Logger: custom_components.nest_protect Unknown pynest exception. Please create an issue on GitHub with your logfile. Updates paused for 1 minute. The above exception was the direct cause of the following exception: Traceback (most recent call last): |
The problem
Unknown pynest exception.
What version of this integration (ha-nest-protect) has the issue?
0.4.0b4
What version of Home Assistant Core has the issue?
2024.4.3
Device / Model
Nest Protect Battery
Diagnostics information
No response
Home Assistant log
Logs
This error originated from a custom integration.
Logger: custom_components.nest_protect
Source: custom_components/nest_protect/init.py:168
integration: Nest Protect (documentation, issues)
First occurred: 6:51:07 PM (4 occurrences)
Last logged: 9:54:12 PM
Unknown pynest exception. Please create an issue on GitHub with your logfile. Updates paused for 1 minute.
Traceback (most recent call last):
File "/config/custom_components/nest_protect/pynest/client.py", line 298, in subscribe_for_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.12/site-packages/aiohttp/client_reqrep.py", line 1176, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain', url=URL('https://czfe73-front01-iad01.transport.home.nest.com/v6/subscribe')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/nest_protect/init.py", line 168, in _async_subscribe_for_data
result = await entry_data.client.subscribe_for_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nest_protect/pynest/client.py", line 302, in subscribe_for_data
raise PynestException(
custom_components.nest_protect.pynest.exceptions.PynestException: 200 error while subscribing -
Additional information
No response
The text was updated successfully, but these errors were encountered: