Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure.WebJobs.Host.FunctionInvocationException - Functions.AddCertificate #400

Open
MyNameIsCeeJay opened this issue Jan 27, 2022 · 1 comment

Comments

@MyNameIsCeeJay
Copy link

Experiencing a Function Failure that I'm not sure if I need to be concerned about or not.

The RenewCert and Cleanup Functions are successful, but not the AddCertificate Function, even though the certificate installs successfully and I'm met with "Certificate was added with success" green-bar notification.

Azure Let's Encrypt
Version 1.0.6
By SJKP

Exception while executing function: Functions.AddCertificate Microsoft.Azure.WebJobs.Host.FunctionInvocationException : Exception while executing function: Functions.AddCertificate ---> System.InvalidOperationException : A task may only be disposed if it is in a completion state (RanToCompletion, Faulted or Canceled). at System.Threading.Tasks.Task.Dispose(Boolean disposing) at System.Threading.Tasks.Task.Dispose() at async LetsEncrypt.Azure.Core.CertificateManager.AddCertificate() at D:\a\1\s\LetsEncrypt.SiteExtension.Core\CertificateManager.cs : 116 at LetsEncrypt.SiteExtension.Functions.AddCertificate(TimerInfo timerInfo,String input,String& output) at D:\a\1\s\LetsEncrypt.SiteExtension.WebJob\Functions.cs : 50 at lambda_method(Closure ,Functions ,Object[] ) at Microsoft.Azure.WebJobs.Host.Executors.VoidMethodInvoker2.InvokeAsync(TReflected instance,Object[] arguments)
at async Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker2.InvokeAsync[TReflected,TReturnValue](Object instance,Object[] arguments) at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.InvokeAsync(IFunctionInvoker invoker,ParameterHelper parameterHelper,CancellationTokenSource timeoutTokenSource,CancellationTokenSource functionCancellationTokenSource,Boolean throwOnTimeout,TimeSpan timerInterval,IFunctionInstance instance) at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithWatchersAsync(IFunctionInstance instance,ParameterHelper parameterHelper,TraceWriter traceWriter,CancellationTokenSource functionCancellationTokenSource) at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??) at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(??) End of inner exception

@MyNameIsCeeJay
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant