Closed adu80 closed 4 years ago
Thanks for informing, clearly the end-to-end test I added failed to catch it, as it tests only new deployments.
BTW yes you can specify sourceUrl
pointing to the desired FunctionRuntime.zip
package.
Great, I will use sourceUrl for the next update of my rules. How can I solve my current problem ? Can I help you ?
Thank you for your time, really.
The error seems to be related to the run.csx
file, so maybe patching that manually is the fastest course.
A radical cure is to create new instances and mappings, then dispose the old ones. In some cases, it might be better remove existing mappings.
In PR #108 I introduced an update.instance
command which should do the update
As you not only need to update you runtime package but also update your azure functions instance from v2 to v3 runtime
Unfortunately it is not yet well documented as I am not completely finished
(I was already in v3 runtime)
Wonderful. After a update.instance and a fail, I don't have error anymore, just warnings (the same). My service seems work fine in 0.9.10.
The error with update.instance :
I'm going to start a new instance to be "clean".
Thank you very much for your responsiveness. I remain available if you want more details to help you with corrections.
hmm, i quickly checked the code and unfortunately the PR was not complete and well tested. Sorry for that.
BUT: It has done everything fine, unfortunately i did a small mistake and return alaways a false which leads to the failed!
message.
Have you checked the instance, just to get the feedback if the migration did the job. Or did you just ignore the output and setup an clean instance?
I can't setup a second instance to be clean right now.
What do I need to check in the instance ?
Simply let the instance execute a rule, your error
2020-04-20T06:54:47.077 [Error] Function compilation errorMicrosoft.CodeAnalysis.Scripting.CompilationErrorException : Script compilation failed.at async Microsoft.Azure.WebJobs.Script.Description.DotNetFunctionInvoker.CreateFunctionTarget(CancellationToken cancellationToken) at D:\a\1\s\src\WebJobs.Script\Description\DotNet\DotNetFunctionInvoker.cs : 314at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Microsoft.Azure.WebJobs.Script.Description.FunctionLoader`1.GetFunctionTargetAsync[T](Int32 attemptCount) at D:\a\1\s\src\WebJobs.Script\Description\FunctionLoader.cs : 55at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Microsoft.Azure.WebJobs.Script.Description.DotNetFunctionInvoker.GetFunctionTargetAsync(Boolean isInvocation) at D:\a\1\s\src\WebJobs.Script\Description\DotNet\DotNetFunctionInvoker.cs : 183
2020-04-20T06:54:47.170 [Error] run.csx(10,23): error CS7036: There is no argument given that corresponds to the required formal parameter 'httpContext' of 'AzureFunctionHandler.AzureFunctionHandler(ILogger, ExecutionContext, HttpContext)'
should not occur if update went well
Everything's working fine. Thank you.
Steps to reproduce
Diagnostic logs
Error :
Warning :
Thanks for your help.