Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
363 stars 301 forks source link

Error: connect ECONNREFUSED 127.0.0.1:8000 #1188

Open heavy-metal-guy opened 4 days ago

heavy-metal-guy commented 4 days ago

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

ccastrotrejo commented 19 hours ago

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.

heavy-metal-guy commented 2 hours ago

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