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

Error: connect ECONNREFUSED 127.0.0.1:8000 #1188

Open
heavy-metal-guy opened this issue Sep 28, 2024 · 9 comments
Open

Error: connect ECONNREFUSED 127.0.0.1:8000 #1188

heavy-metal-guy opened this issue Sep 28, 2024 · 9 comments
Labels

Comments

@heavy-metal-guy
Copy link

heavy-metal-guy commented Sep 28, 2024

Describe the Bug with repro steps

Open the workflow.json file's shortcut menu, and select Open Designer.

As the result, there are few error messages:

[2024-09-28T01:04:42.263Z] Error building configuration in an external startup class. System.Net.Http: The SSL connection could not be established, see inner exception. System.Net.Security: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'. Odebrano nieoczekiwany lub nieprawidlowo sformatowany komunikat. [2024-09-28T01:04:42.267Z] A host error has occurred during startup operation '7e7f643e-c75c-4ec4-b760-450aeb82a480'. [2024-09-28T01:04:42.267Z] Microsoft.Azure.WebJobs.Script: Error building configuration in an external startup class. System.Net.Http: The SSL connection could not be established, see inner exception. System.Net.Security: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'. Odebrano nieoczekiwany lub nieprawidlowo sformatowany komunikat. Value cannot be null. (Parameter 'provider') [2024-09-28T01:04:42.306Z] Host startup operation has been canceled 3:05:09 AM: Error: connect ECONNREFUSED 127.0.0.1:8000

3:16:22 AM: Starting Design Time Api

3:16:22 AM: Running command: "C:\Users\szymonl.azurelogicapps\dependencies\FuncCoreTools\func host start --port 8000" with pid: "24592"…

Azure Functions Core Tools

Core Tools Version: 4.0.6280 Commit hash: N/A +421f0144b42047aa289ce691dc6db4fc8b6143e6 (64-bit)

Function Runtime Version: 4.834.3.22875

[2024-09-28T01:16:24.035Z] Error building configuration in an external startup class.

[2024-09-28T01:16:24.036Z] Error building configuration in an external startup class. System.Net.Http: The SSL connection could not be established, see inner exception. System.Net.Security: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'. Odebrano nieoczekiwany lub nieprawidlowo sformatowany komunikat.

[2024-09-28T01:16:24.040Z] A host error has occurred during startup operation '8df9bfd7-c025-4381-b141-ab88d794dded'.

[2024-09-28T01:16:24.041Z] Microsoft.Azure.WebJobs.Script: Error building configuration in an external startup class. System.Net.Http: The SSL connection could not be established, see inner exception. System.Net.Security: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'. Odebrano nieoczekiwany lub nieprawidlowo sformatowany komunikat.

Value cannot be null. (Parameter 'provider')

[2024-09-28T01:16:24.080Z] Host startup operation has been canceled

What type of Logic App Is this happening in?

Standard (VSCode)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
  "definition": {
    "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
    "actions": {},
    "contentVersion": "1.0.0.0",
    "outputs": {},
    "triggers": {}
  },
  "kind": "Stateful"
}

Screenshots or Videos

No response

Browser

Edge

Additional context

No response

@rllyy97 rllyy97 added the vscode label Sep 30, 2024
@ccastrotrejo ccastrotrejo self-assigned this Sep 30, 2024
@ccastrotrejo
Copy link

ccastrotrejo commented Oct 1, 2024

Hi @heavy-metal-guy thanks for raising this issue.
I took a look on why this is happening and most of the cases the reason on why this happens is due to the customer firewall. When the user opens the desinger whe make sure that the extension bundle also gets downloaded. In this case due to the firewall it doesn't gets downloaded.

  • Could you please check if you have the extension bundle in the following directory? <username> its just a placeholder. That should be your username.
    /Users/<username>/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle.Workflows/

  • If indeed you are using a custom firewall, could you try amending firewall to allow downloading it?

@ccastrotrejo ccastrotrejo removed their assignment Oct 1, 2024
@ccastrotrejo ccastrotrejo transferred this issue from Azure/LogicAppsUX Oct 1, 2024
@heavy-metal-guy
Copy link
Author

Hi @ccastrotrejo ,
Thank you for your response.
I have Microsoft.Azure.Funtions.ExtensionBundle.Workflows downloaded. Version 1.87.34.
I disabled firewall and tried to open designer. Still get an error:

`4:49:04 PM: Starting Design Time Api
4:49:04 PM: Running command: "C:\Users\szymonl.azurelogicapps\dependencies\FuncCoreTools\func host start --port 8000" with pid: "44416"...

Azure Functions Core Tools
Core Tools Version: 4.0.6280 Commit hash: N/A +421f0144b42047aa289ce691dc6db4fc8b6143e6 (64-bit)
Function Runtime Version: 4.834.3.22875

[2024-10-02T14:49:05.339Z] Error building configuration in an external startup class.
[2024-10-02T14:49:05.339Z] Error building configuration in an external startup class. System.Net.Http: The SSL connection could not be established, see inner exception. System.Net.Security: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'. Odebrano nieoczekiwany lub nieprawidlowo sformatowany komunikat.
[2024-10-02T14:49:05.344Z] A host error has occurred during startup operation '6b29536c-78e2-496d-bf68-4d02975e1a57'.
[2024-10-02T14:49:05.345Z] Microsoft.Azure.WebJobs.Script: Error building configuration in an external startup class. System.Net.Http: The SSL connection could not be established, see inner exception. System.Net.Security: Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'. Odebrano nieoczekiwany lub nieprawidlowo sformatowany komunikat.
Value cannot be null. (Parameter 'provider')
[2024-10-02T14:49:05.366Z] Host startup operation has been canceled`

Kind Regards

@ccastrotrejo
Copy link

Hi @heavy-metal-guy, this seems to be a backend issue related to the extension bundle, that th reason on why I transferred it to this repo. I will contact the backend engineers to se see what we can do about it. I will update the thread as soon as I know there is a fix or a workaround.

Copy link

This issue is stale because it has been open for 45 days with no activity.

@github-actions github-actions bot added the stale label Nov 16, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@heavy-metal-guy
Copy link
Author

@ccastrotrejo ,
Do you have any feedback from backend engineers?

@ccastrotrejo
Copy link

ccastrotrejo commented Dec 2, 2024

Hi @heavy-metal-guy not yet.
Also could you please check which version of the logic apps extension bundle you have?
/Users/<your-username>/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle.Workflows should be the folder with the latest version in this path in your computer

Tagging some BE engineers on this.
@AbodeSaafan, @swghimire is there any chance you can help us to take a look at this?

@AbodeSaafan
Copy link
Contributor

@heavy-metal-guy Do you have storage emulator or azurite running and the connection string set to use dev storage. The connection string is set to that automatically when you create a workflow in VSCode but please check that your local storage emulator is running, that might be the problem here

@heavy-metal-guy
Copy link
Author

Hello
@ccastrotrejo
Thank you for the response. I have installed Logic Apps (Standard) v4.107.4 and Azure Functions v1.16.1. Path that you mentioned contains folders: 1.87.34, 1.91.14 and 1.94.13. That's why I tried to install different versions of extensions. Thoug those folders are no related to extensions versions in VSCode.

@AbodeSaafan
Thank you for your answer. I use azurite. Though I think there might the problem with the configuration. Thanks for the suggestions. I'll try to install it again manually.

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

No branches or pull requests

4 participants