Skip to content
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

Synology DSM integration fails to connect with bad header in response #133766

Open
dglugla opened this issue Dec 21, 2024 · 1 comment
Open

Synology DSM integration fails to connect with bad header in response #133766

dglugla opened this issue Dec 21, 2024 · 1 comment

Comments

@dglugla
Copy link

dglugla commented Dec 21, 2024

The problem

When trying to configure a new Synology DSM integration I'm getting "Unable to connect error" constantly.
I created a dedicated HA user in DSM, assigned it to the admins group, and I am able to connect to the DSM from HA via SSH on that user.
In HA logs I found the following error reported:
{'api': None, 'code': -1, 'reason': 'Unknown', 'details': "ClientResponseError = RequestInfo(url=URL('http://my_DSM_host:my_DSM_port/webapi/query.cgi?api=SYNO.API.Info&version=1&method=query'), method='GET', headers=<CIMultiDictProxy('Host': 'my_DSM_host:my_DSM_port', 'User-Agent': 'HomeAssistant/2024.12.5 aiohttp/3.11.11 Python/3.13', 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate, br')>, real_url=URL('http://my_DSM_host:my_DSM_port/webapi/query.cgi?api=SYNO.API.Info&version=1&method=query'))"}

I tried running this directly from HA's terminal using wget and I got following response from my DSM:
SSH-2.0-OpenSSH_8.2 Invalid SSH identification string.

What version of Home Assistant Core has the issue?

core-2024.12.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

synology_dsm

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Rejestrator: homeassistant.components.synology_dsm.config_flow
Źródło: components/synology_dsm/config_flow.py:196
integracja: synology_dsm (dokumentacja, Problemy)
Pierwsze zdarzenie: 21 grudnia 2024 23:12:16 (1 zdarzenia)
Ostatnio zalogowany: 21 grudnia 2024 23:12:16

Additional information

No response

@home-assistant
Copy link

Hey there @hacf-fr, @Quentame, @mib1185, mind taking a look at this issue as it has been labeled with an integration (synology_dsm) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of synology_dsm 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 synology_dsm 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)


synology_dsm documentation
synology_dsm source
(message by IssueLinks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants