Microsoft.Azure.WebJobs.Extensions.EventGrid: Object reference not set to an instance of an object

Viewed 316

I have an azure function V3 (consumption plan, windows, .net 3.1), also using dependency injection. The function was working fine, published many time before. After the last publish, it was working fine and did too many requests. suddenly I'm getting 503 error with "Microsoft.Azure.WebJobs.Extensions.EventGrid: Object reference not set to an instance of an object."

Tried to restart the app service, republish the same code ... nothing resolve my issue.

Please advice.

1 Answers

I had similar symptoms, and for me it turned out that the latest update of EF Core was causing issues. I'm not sure why yet, but I reverted Microsoft.EntityFrameworkCore.SqlServer back from 5.0.4 to 3.1.1 and everything started working again.

Related