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

Could not connect error #53

Open
B4dC4rd opened this issue May 24, 2023 · 11 comments
Open

Could not connect error #53

B4dC4rd opened this issue May 24, 2023 · 11 comments

Comments

@B4dC4rd
Copy link

B4dC4rd commented May 24, 2023

I'm getting this error both if trying the https with fully qualified domain name or http with IP:port.
Getting the error clears my settings.

@Garulf
Copy link
Owner

Garulf commented May 24, 2023

Keep in mind Flow Launcher only saves settings once the settings window is closed.

Please try entering your settings, closing the settings window and try to activate the plugin once more.

@B4dC4rd
Copy link
Author

B4dC4rd commented May 24, 2023

Good to know.
I tested both options, making sure to close the settings and reopen them to ensure proper persistance of my values.
However, behavior is the same.
Not sure how to troubleshoot further

@Garulf
Copy link
Owner

Garulf commented May 27, 2023

Please post your plugin.log located where HA-Commander is installed. This will help us find out what the issue is.

Be sure to replace any sensitive info such as your server URL or API key before posting.

@Ashden
Copy link

Ashden commented Jun 2, 2023

Hello,

I also have this issue.
The plugin.log file is empty, and FlowLauncher's log has no mention of the issue.

image

The URL used in the settings works fine, the token was reissued and updated.

There is a log in HA about the attempted login:

image

This issue started happening after updating HA Core (currently using version 2023.5.2)

@Garulf
Copy link
Owner

Garulf commented Jun 4, 2023

Hello,

I also have this issue. The plugin.log file is empty, and FlowLauncher's log has no mention of the issue.

[image]

The URL used in the settings works fine, the token was reissued and updated.

There is a log in HA about the attempted login:

[image]

This issue started happening after updating HA Core (currently using version 2023.5.2)
I can confirm it works for the latest version (see below).

I think your settings are not being saved correctly and the plugin is using old/incorrect settings.

Until I can issue a fix you can manual update these settings

  1. First Close Flow Launcher
    image
    (We dont want Flow Launcher to overwrite our new manual settings)

  2. Edit your settings file directly by going here: %AppData%\FlowLauncher\Settings\Plugins\HA-Commander

  3. Replace the values in your file with the correct settings:
    image

Working!
image

@Ashden
Copy link

Ashden commented Jun 5, 2023

Right you are @Garulf, manually setting the data in the plugin Settings.json file works. Thank you!

@Patbott
Copy link

Patbott commented Jul 30, 2023

Even after changing the settings in the json file it doesn't work for me. The log just gives this (some personal info removed):

19:54:22 DEBUG (launcher.py): Request:
{
    "method": "query",
    "parameters": [
        ""
    ],
    "settings": {
        "url": "**************",
        "token": "*************",
        "verify_ssl": "true",
        "max_results": "50",
        "debug": true
    }
}
19:54:22 DEBUG (launcher.py): Params: ['']
19:54:22 DEBUG (main.py): Initializing Home Assistant Client
19:54:22 DEBUG (connectionpool.py): Starting new HTTPS connection (1): **************
19:54:22 DEBUG (launcher.py): ########## Total time: 52ms ##########

@B4dC4rd
Copy link
Author

B4dC4rd commented Sep 29, 2023

After trying the manual edit tip, I progressed somewhat, but the plugin still is not fonctionning correctly it seems.

I do not have a connection error, but I retreive nothing :

2023-09-29_14h18_47

2023-09-29_14h21_20

@asd2003ru
Copy link

After trying the manual edit tip, I progressed somewhat, but the plugin still is not fonctionning correctly it seems.

I do not have a connection error, but I retreive nothing :

2023-09-29_14h18_47

2023-09-29_14h21_20
I confirm. Maybe the problem is the updated built-in Python?

@B4dC4rd
Copy link
Author

B4dC4rd commented Oct 2, 2023

Hi @Garulf , any idea what could be causing the issue?

@nabeelmoeen
Copy link

nabeelmoeen commented Jun 4, 2024

I have the same 'Could not connect' error.

  1. the settings are saved once I fill in the details in the Flow plugins settings
  2. Close and reopen the settings window -> confirms the settings are as defined
  3. Try to invoke 'ha ' in the flow launcher text box. -> returns an error that ha could not connect. AND overrides the settings to defaults

earlier I had to manually edit the settings in the json file, and it worked for a couple of days. not sure how that got over written again.

EDIT: manually editing the file again seems to retain the values and ha is working. the only concern is it may get overwritten again

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

No branches or pull requests

6 participants