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
70.14k stars 29.18k forks source link

Overkiz Error requesting device events data: 400 #104744

Closed Wiggum127 closed 5 months ago

Wiggum127 commented 8 months ago

The problem

The Overkiz integration is throwing an error in the logs.

What version of Home Assistant Core has the issue?

core-2023.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Overkiz

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.overkiz
Source: helpers/update_coordinator.py:303
Integration: Overkiz (documentation, issues)
First occurred: 28 november 2023 om 13:51:47 (1 occurrences)
Last logged: 28 november 2023 om 13:51:47

Error requesting device events data: 400, message="Invalid header value char:\n\n b'Cache-Control: no-cache'\n ^", url=URL('https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/events/1628bd3d-0a19-0483-080a-dd0bf9a3a06b/fetch')

Additional information

No response

home-assistant[bot] commented 8 months ago

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

Code owner commands Code owners of `overkiz` 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 overkiz` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


overkiz documentation overkiz source (message by IssueLinks)

iMicknl commented 8 months ago

How often does this occur? I actually had the same error once, and this is an error on the side of Overkiz server. The integration recovers from this without issues, thus I would be in favor of closing this PR if this is only a one time error in the log. :-)

Error requesting device events data: 400, message="Invalid header value char:\n\n b'Cache-Control: no-cache'\n ^", url=URL('https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/events/160125ab-0a19-0482-3d61-decba81301e1/fetch')
Wiggum127 commented 8 months ago

Was checking my logs because of updating to the latest HA version. Happened first time and once today, for now.

RichieB2B commented 7 months ago

I am seeing the exact same error for 2 hours now. The CozyTouch app says:

Maintenance

Server currently under maintenance, please try again later
iMicknl commented 7 months ago

@RichieB2B do you see Invalid header value as well? Can you share your full log?

@Wiggum127 which hub do you have?

RichieB2B commented 7 months ago

I have the CozyTouch Bridge v1 with the RJ45 ethernet port. My error message is exactly the same, but it comes from a custom script (not HA):

ClientResponseError during login: 400, message="Invalid header value char:\n\n  b'Cache-Control: no-cache'\n                           ^", url=URL('https://ha110-1.overkiz.com/enduser-mobile-web/enduserAPI/login')

I believe the root cause is that Atlantic disables their API backend but leaves their frontend (webservers) running. They produce strange errors during maintenance. See https://github.com/iMicknl/python-overkiz-api/issues/979#issuecomment-1840694356 for a way to test if the Atlantic API is in maintenance mode.

Wiggum127 commented 7 months ago

I'm using the Somfy Connexoon hub. FYI, haven't seen the issue reocurring since last report on 28/11.

RichieB2B commented 7 months ago

@Wiggum127 The next time you see these errors, please check what the Somfy TaHoma app says. If it tells you there is ongoing maintenance, maybe we can figure out which URL they use to check this.

Wiggum127 commented 7 months ago

@RichieB2B Should be very lucky to stumble upon the error on time. I only check the HA logs once every so often to see if anything is broken. So changes are very slim I'll be able to provide what you're looking for. Is there anything I can do now already to provide you with more details ?

iMicknl commented 5 months ago

@Wiggum127 do you still face this issue?

Wiggum127 commented 5 months ago

@iMicknl Things have been very stable lately. So can't state the I'm still suffering from the issue.

iMicknl commented 5 months ago

Thanks! Let's close the issue for now, but happy to reopen if you face issues again.