Closed tiurikov closed 1 year ago
I have the same issue. @tiurikov did you have found a work around ?
@tiurikov found something:
Durable Functions for Java requires Azure Functions Core Tools v4.0.4915 or newer. You can see which version is installed by running the func --version command from the terminal.
I had an older version of the core tools. After upgrading, I had some other errors, but it seems that it's in my hands...
@tiurikov did you get a chance to try updating your Core Tools version? I expect that's the root of the problem.
Working in Ubuntu (Bullseye), installing from apt
the most current version is 4.0.4895
.
~ $ func --version
4.0.4895
~ $ sudo apt install azure-functions-core-tools-4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
azure-functions-core-tools-4 is already the newest version (4.0.4895-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Edit: Same for Focal (20.04).
Installing via NPM installs the most current release. I don't encounter the interface creation error anymore (though I need to fix my VS Code build/debug tasks).
Looks like the package release issue is resolved and I'm seeing 4.0.5095 from apt
now. 🎉
Glad to hear this was resolved! I'll go ahead and close this issue now.
Hi there!
I'm trying to run a simple Azure Durable Function as described here: https://learn.microsoft.com/en-us/azure/azure-functions/durable/quickstart-java?tabs=bash&pivots=create-option-manual-setup#create-your-functions
I use the following command:
mvn clean package azure-functions:run
but got an error after trying to call the HTTP URL
http://localhost:7071/api/StartOrchestration
for the function:Looks like a TaskOrchestrationContext instance is needed but the Gson doesn't know how to instantiate it and asking for
InstanceCreator
or aTypeAdapter
. Any idea how to fix it?I'm using Java 11, com.microsoft.azure.functions:azure-functions-java-library:3.0.0, com.microsoft:durabletask-azure-functions:1.0.1
Best regards, Stan