LogicAppsUX icon indicating copy to clipboard operation
LogicAppsUX copied to clipboard

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

Open wiktorklusek opened this issue 1 year ago • 8 comments
trafficstars

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].

wiktorklusek avatar Jul 07 '24 15:07 wiktorklusek

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",

DanielleCogs avatar Jul 08 '24 04:07 DanielleCogs

Hi Danielle,

Let me try that approach now

wiktorklusek avatar Jul 10 '24 15:07 wiktorklusek

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 avatar Jul 10 '24 15:07 wiktorklusek

image

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

wiktorklusek avatar Jul 10 '24 16:07 wiktorklusek

@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 avatar Jul 16 '24 21:07 DanielleCogs

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

DanielleCogs avatar Jul 16 '24 22:07 DanielleCogs

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 avatar Jul 17 '24 16:07 wiktorklusek

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.

wiktorklusek avatar Jul 25 '24 08:07 wiktorklusek

Closing this issue as it has been a long time and we have released multiple vscode extensions version. Please if this is still happening let us know and we can take a deeper look in this.

ccastrotrejo avatar May 12 '25 17:05 ccastrotrejo