Giter Club home page Giter Club logo

Comments (11)

anthonychu avatar anthonychu commented on July 19, 2024 1

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.

ConnorMcMahon avatar ConnorMcMahon commented on July 19, 2024 1

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.

davidmrdavid avatar davidmrdavid commented on July 19, 2024 1

Yup, thanks for the triage, @hossam-nasr!

from azure-functions-durable-js.

cgillum avatar cgillum commented on July 19, 2024

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.

sdoucetOctopus avatar sdoucetOctopus commented on July 19, 2024

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.

kashimiz avatar kashimiz commented on July 19, 2024

Repro'd this. Also occurs for 0, ''/"", and NaN.

from azure-functions-durable-js.

kashimiz avatar kashimiz commented on July 19, 2024

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.

Mirco469 avatar Mirco469 commented on July 19, 2024

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.

davidmrdavid avatar davidmrdavid commented on July 19, 2024

To my surprise, I am too seeing this problem @Mirco469. I'll investigate this shortly

from azure-functions-durable-js.

davidmrdavid avatar davidmrdavid commented on July 19, 2024

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.

hossam-nasr avatar hossam-nasr commented on July 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.