question

MuhamedSalihSI avatar image
0 Votes"
MuhamedSalihSI asked MuhamedSalihSI commented

Azure function/durable funciton container disposed error (Nodejs)

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MuhamedSalihSI - I've reached out to you in the private comments and requested some details so that we can investigate and help identify the root cause.

0 Votes 0 ·
MikeUrnun avatar image
0 Votes"
MikeUrnun answered MuhamedSalihSI commented

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @MikeUrnun for your time.
I shall try to raise it as separate ticket and will reply in thread if my issue is sorted out.

0 Votes 0 ·
LuisHigareda-7086 avatar image
0 Votes"
LuisHigareda-7086 answered MuhamedSalihSI commented

Did you solve the issue?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sorry for the delayed response.
I Can't completely escape from it.
But it reduced when I try to do the following:
1. Do less logging or keep level above information levels.
2. manage memory foot print of the application low
3. move to higher plans like premium

or try creating a private ticket MS expert will provide dedicated solution diagnosing your problems.
(I cant get an opportunity to create a support ticket)

Hope the info is useful.

Good luck!



0 Votes 0 ·