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
71.14k stars 29.82k forks source link

Cannot set up Google Generative AI due to Failed to connect #123337

Open danieldotnl opened 1 month ago

danieldotnl commented 1 month ago

The problem

I'm trying to set up Google Generative API. I created an API key and linked it to a biling account. I get a valid response with my api key if I call the api via curl with the example given by Google.

When i try to setup the integration in home assistant and enter my api key, I get 'Failed to connect' each time. No more details and nothing in the logs.

What version of Home Assistant Core has the issue?

2024.8.0

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

Google Generative AI

Link to integration documentation on our website

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

Diagnostics information

I cannot set up the device so no diagnostics data

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Nothing in the logs

Additional information

No response

home-assistant[bot] commented 1 month ago

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

Code owner commands Code owners of `google_generative_ai_conversation` 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 google_generative_ai_conversation` 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)


google_generative_ai_conversation documentation google_generative_ai_conversation source (message by IssueLinks)

danieldotnl commented 1 month ago

Additional info: I'm a custom integration developer so I have a development environment and on this environment I can set it up without problems. Only on my "production" system I'm unable to set it up. I tried remote debugging but it fails to stop at my breakpoints...

KommanderKeen1 commented 3 weeks ago

I have this same issue for weeks and can't sort it out.

ronanm35 commented 21 hours ago

Just configure your IPv6 in home assistant or delete IPv6 : https://www.reddit.com/r/homeassistant/comments/1emc4hv/adding_google_generative_ai_failed_to_connect/