Azure / Azure/azure-functions-host

Durable Functions and PubSub Functions used together Causes uncaught exception ... TypeError: The orchestrator can not execute without an OrchestratorStarted event.

Open
#9,068 0 comments 0 reactions 1 assignee Claimed by @aishwaryabh View on GitHub
bug feature:durable functions
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

#### Investigative information

I have added pubsub to durable functions

When I run pubsub functions and durable functions in separate vs code local projects they work fine

but

When I join them together, I get error.

Specifically when

I modified HttpTrigger with following information
functions.json
{
"type": "webPubSub",
"name": "actions",
"hub": "notification",
"direction": "out"
}
and in run time I get error

#### Expected behavior
```
[2023-02-03T05:51:57.713Z] .
...: Function 'O1_DF_Orchestrator (Orchestrator)' failed with an error.
Reason: System.AggregateException: One or more errors occurred. (node exited with code 1
LanguageWorkerConsoleLog[error] Worker ... uncaught exception (learn more: https://go.microsoft.com/fwlink/?linkid=2097909 ): TypeError: The orchestrator can not execute without an OrchestratorStarted event.
at Function.ensureNonNull (C:\...\node_modules\durable-functions\lib\src\utils.js:63:19) at Orchestrator. (C:\bluebeaker\functions\model-convert-be-functions\node_modules\durable-functions\lib\src\orchestrator.js:45:58)
at
Generator.next () at ...\node_modules\durable-functions\lib\src\orchestrator.js:8:71
at new Promise ()
at __awaiter (...\node_modules\durable-functions\lib\src\orchestrator.js:4:12)
at Orchestrator.handle (...\node_modules\durable-functions\lib\src\orchestrator.js:26:16)
at Object.default (...\node_modules\durable-functions\lib\src\shim.js:17:9)
at e (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\worker-bundle.js:2:308572)
at t.WorkerChannel.invocationRequest (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\worker-bundle.js:2:16866))
```
There is no error when I delete
functions.json
{
"type": "webPubSub",
"name": "actions",
"hub": "notification",
"direction": "out"
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.