Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
73 stars 78 forks source link

Error loading Data Mapper resource: "Failed to fetch Function manifest: Failed to fetch}" #5079

Open wiktorklusek opened 1 month ago

wiktorklusek commented 1 month ago

Describe the Bug with repro steps

Suddenly, I've started encountering an issue. Whenever I attempt to create or open a new map, I receive an error stating 'can't start the background design-time process'!

Screenshots or Videos

image

Version

Azure Functions Core Tools

Core Tools Version: 4.0.5455 Commit hash: N/A (64-bit)

Function Runtime Version: 4.27.5.21554

Additional context

NodeJs Binaries: C:\Users\w.klusek.azurelogicapps\dependencies\NodeJs

2:59:10 PM: Running command: "C:\Users\w.klusek.azurelogicapps\dependencies\FuncCoreTools\func host start --port 8000" with pid: "21472"…

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Azure Functions Core Tools

Core Tools Version: 4.0.5455 Commit hash: N/A (64-bit)

Function Runtime Version: 4.27.5.21554

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

FuncCoreTools Binaries: C:\Users\w.klusek.azurelogicapps\dependencies\FuncCoreTools

[2024-07-07T13:59:15.450Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).

For detailed output, run func with --verbose flag.

[2024-07-07T13:59:20.317Z] Host lock lease acquired by instance ID '0000000000000000000000000A17BE9D'.

3:02:24 PM: Running command: "C:\Users\w.klusek.azurelogicapps\dependencies\FuncCoreTools\func host start --port 8000" with pid: "25972"…

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Port 8000 is unavailable. Close the process using that port, or specify another port using --port [-p].

Backend runtime failed to start: "Unknown error"

Error loading Data Mapper resource: "Failed to fetch"

Error loading Data Mapper resource: "Failed to fetch Function manifest: Failed to fetch}"

Error loading Data Mapper resource: "Failed to fetch Function manifest: Failed to fetch}"

3:57:31 PM: Timeout: validateFuncCoreToolsIsLatest

4:00:33 PM: Running command: "C:\Users\w.klusek.azurelogicapps\dependencies\FuncCoreTools\func host start --port 8000" with pid: "26676"…

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]

Port 8000 is unavailable. Close the process using that port, or specify another port using --port [-p].

DanielleCogs commented 1 month ago

What version of the VSCode extension are you running?

Could you please check or try adding these values to the local.settings.json inside the workflow-designtime folder in your project? These properties should be inside the "Values" property "AzureWebJobsSecretStorageType": "Files", "APP_KIND": "workflowapp",

wiktorklusek commented 1 month ago

Hi Danielle,

Let me try that approach now

wiktorklusek commented 1 month ago

Here are the content of my file:

{ "IsEncrypted": false, "Values": { "FUNCTIONS_WORKER_RUNTIME": "node", "AzureWebJobsStorage": "UseDevelopmentStorage=true", "ProjectDirectoryPath": "c:\Users\admin\Samples\LogicAppMapperPOC", "AzureWebJobsSecretStorageType": "Files", "APP_KIND": "workflowapp", "Host": { "LocalHttpPort": 8080 } } }

wiktorklusek commented 1 month ago

image

Whenever I try to Select schema I get this error Failed to Fetch

DanielleCogs commented 1 month ago

@wiktorklusek I was able to reproduce the issue when I added the following to my local.settings.json. Are you able to remove this setting for now as a temporary workaround?

"Host": {
"LocalHttpPort": 8080
} 

I do not think this is an issue specific to Data Mapper, as the same error happens when opening Designer.

DanielleCogs commented 1 month ago

Seems that we do not yet support being able to specify the port in this way. Is this a blocking scenario for you?

wiktorklusek commented 1 month ago

Once the "Host" was removed, I received the same issue. The two Azure Core Tool functions that typically load right at the start are not found by my setup.

wiktorklusek commented 1 month ago

I suspect I would need to reinstall the functions core tools, do you have any documentation for that? My extension is unable to locate functions required to run the data mapper.