Open carct opened 4 years ago
fix = downgrade to 3.0.2245 scenario:
function loads in runtime, successfully serves request and processes payload, make a change to code, save, function runtime reloads everything, send again a request and same error turns up
CTRL+C to close the runtime, rerun with F5 without changing anything everything works, but some other times i need reset (click on Kill Terminal) for both =====> PowerShell Integrated Console v2020.6.0 <=====
and Task > Executing task: func start --script-root src <
once i do this it seems to work everytime
btw, the --watch
flag from the func
CLI does not influence behavior what-so-ever
@AnatoliB @Francisco-Gamino Can you please take a look to see what this problem might be? Thanks.
@carct Do you have any code in the profile.ps1 file in the root of your app? Does the issue repro if you remove or comment out all the code there?
@AnatoliB i have a line for loading modules but behavior is consistent with or without that line
@carct I was unable to repro this on a simple app. If possible, could you please share:
func start
log.
System.Private.CoreLib: Result: Failure Exception: Value cannot be null. (Parameter 'value')
above error is thrown in local-dev runtime environment when calling the HttpTrigger with POST and JSON-format payload on a PowerShell AzFunctionApp-v3 NB: error is thrown before any code is executed for validation i left in my run.ps1 just the following lines (commenting all the rest) and error was still thrown:
azure-functions-core-tools installation:
npm i -g azure-functions-core-tools@3 --unsafe-perm true
which translated to version3.0.2534
fix = downgrade to 3.0.2245:
npm i -g azure-functions-core-tools@3.0.2245 --unsafe-perm true
configuration files + other environment tools & versions
function.json
.vscode/settings.json
host.json
VSCode 1.46.0 MS PowerShell VSCode Extension v2020.6.0
=====> PowerShell Integrated Console v2020.6.0 <=====