Comments (11)
I think undefined
and NaN
could be difficult to support. Suggest closing this issue and adding a new one to document valid return types. @ConnorMcMahon what do you think?
from azure-functions-durable-js.
We could theoretically encode it in a specific way, but I'm not sure it is worth the effort for now. I think documenting it is the right approach, and we only invest the effort if there is demand for it.
from azure-functions-durable-js.
Yup, thanks for the triage, @hossam-nasr!
from azure-functions-durable-js.
Is this running in Azure or locally? If it's in Azure we could look into some of our online telemetry to see what's going on. If it's local, can you verify whether this still happens after clearing all messages in the storage queues and trying again?
from azure-functions-durable-js.
Hi,
I'm running my functions locally for now.
I've deleted all queues (durablefunctionhub-control : 0-3 and workitems), an still having this behaviour.
I've also deleted the History and Instances tables.
I'm running VS Code with DurableTask extension v1.7.0
Thnaks
from azure-functions-durable-js.
Repro'd this. Also occurs for 0
, ''
/""
, and NaN
.
from azure-functions-durable-js.
This has been partially fixed; when returning undefined
or NaN
, which have no equivalent in the underlying .NET extension, the orchestrator's output still appears as null
.
from azure-functions-durable-js.
Hi, i think the problem is not solved for return value false.
I'm using durable-functions v. 1.4.4 for javascript and when i return true from my activity function everything works fine. However when my activity function returns false my orchestrator function receives null.
I'm running the code on Azure.
from azure-functions-durable-js.
To my surprise, I am too seeing this problem @Mirco469. I'll investigate this shortly
from azure-functions-durable-js.
I think something changed at the azure-functions-nodejs-worker
level because durable-extension
, which is the engine that powers azure-functions-durable-js
is also receiving null
as the output of the activity, so the nodejs worker must be failing to serialize false
.
This is the line in durable-extension
where I would expect to receive false
as the value of serializedOutput
:
https://github.com/Azure/azure-functions-durable-extension/blob/c01a22628685b4d427243552ab3f9d4e03076266/src/WebJobs.Extensions.DurableTask/Listener/TaskActivityShim.cs#L74
Unfortunately, with the holidays coming up and my team-members from that team likely out of office, this might take a little bit to fix. In the meantime, returning a string should allow us to at least mitigate this issue without losing functionality.
I'll look to submitting a patch as soon as my nodejs-worker
team-members are back from their holiday break! ⚡ ⚡
from azure-functions-durable-js.
@davidmrdavid has this been fixed by Azure/azure-functions-nodejs-worker#383? Can we close this issue?
from azure-functions-durable-js.
Related Issues (20)
- Update references of `orchestrationClient` to `durableClient`
- Improve `Utils.getInstancesOf`
- Add Node 20 to build pipelines HOT 1
- Make file names and structure more node idiomatic HOT 1
- Azure Function CosmosDB input binding is reformatting a string field containing a date and losing precision HOT 1
- Intermittent Error Running Suborchestrator
- weak typing for yield results on `callActivity` HOT 1
- ❓Survey: Your experience with Durable Functions
- [Please ignore] Testing GH triage automation HOT 1
- Failed: node exited with code 1 HOT 2
- Long running Functions hangs and then timeout HOT 6
- Function hangs and doesn't even timeout unless terminated HOT 2
- This repo is missing important files HOT 1
- Durable entity creation? (and lifecycle management) HOT 3
- waitForExternalEvent not completing in reasonable time when event arrives early
- Update axios package version HOT 10
- Receiving error "Cannot read properties of undefined" at method getClient HOT 7
- Orchestrations are failing to find the orchestration but its listed in the known orchestrators HOT 1
- context.df.isReplaying is always undefined HOT 1
- Update axios dependency in both v2 and v3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-durable-js.