Share via

Azure function/durable funciton container disposed error (Nodejs)

MuhamedSalihSI 71 Reputation points
2021-04-09T14:07:22.647+00:00

We are using Azure function v~3 and nodejs runtime v~14/~12 recently we have been experiencing lots of container disposed error

The error Message / stack : The host is disposed and cannot be used. Disposed object: 'Microsoft.Azure.WebJobs.Script.WebHost.DependencyInjection.ScopedResolver' Container is disposed and should not be used: Container is disposed. You may include Dispose stack-trace into the message via: container.With(rules => rules.WithCaptureContainerDisposeStackTrace())

Need help in identifying root cause of this issue or Need assistance resolving this issue. Thanks in advance.

Regards,
Muhamed

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


Answer accepted by question author

Mike Urnun 9,792 Reputation points Moderator
2021-05-08T22:51:41.31+00:00

Hi @MuhamedSalihSI

I looked into this issue and the error itself doesn't seem enough to narrow down the root cause. As such, I recommend opening a support case and working with a support engineer who has deeper insights into your environment to troubleshoot the exact root cause.

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Luis Higareda 1 Reputation point
    2021-06-06T04:50:35.233+00:00

    Did you solve the issue?

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.