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
Proxies: Worker was unable to load function: The argument 'id' must be a non-empty string. #4809
Proxies: Worker was unable to load function: The argument 'id' must be a non-empty string. #4809
Comments
@iyerusad Is this a proxy only function app, if you have other functions, what language are they using |
No, it has over 10 Azure functions running on Node. |
Having the same issue here with javascript function on Node. |
@pragnagopa is this a known issue? |
@mhoeger - Can you please take a look? |
Having the same issue, using Node. |
Was getting following error today
Updated from node 10.14.1 to 10.16.1 (latest LTS) resolved this particular issue. Proxies issue still persists. |
Seeing the same problem today when running locally in VS Code. Azure Functions Core Tools (2.7.1575 Commit hash: b7750e7) Is there a workaround anyone knows about? |
I shut down VS Code and manually killed two instances of Node.js. There were about 20 instances of the "Runtime Broker" process running (I had been writing code and testing for several hours) and I killed all of those. I restarted VS Code and was able to debug again. If I had to guess, I'd say there's a process leakage bug. |
this is still happening as of today Nov 8, 2019 |
Same error here... Does however some to be working?! |
Likewise for me. |
Having local.settings.json included in my solution helped with the error - might be kicked off by not having "Values" or "Host" related to local.settings |
Yes can confirm I see this too. @fabiocav @mhoeger @ColbyTresness it appears when using proxies in JavaScript it throws this error on
This happens for both v2 and v3, but my repro above was using the latest v3 core tools |
I'm also getting this error with my proxies, though both the functions and proxies do still seem to work ...
|
Verbosity of the errors has slightly increased (looks like a deeper call stack):
|
I have also had this for the past few weeks. The proxy still seems to run, but it's unsettling to see this error every time the function starts
|
Hi I'm still having the error,
I check the proxies' documentation and are the same. Node Js 12.6.1 |
node v 12.0 Having same error, How to resolve? How to rollback to some point where it was working? |
@heyAyushh I believe this error does not actually functionally break anything. If you check your proxies they should still be working even though the error displays. |
hi @m-sterspace, permanentredirection works but proxy1 doesn't
Is this proxies.json correct? |
@mhoeger Is it possible to handle these errors in the Node worker? |
Taking this for next sprint |
As a quick workaround, I found that editing the method throwing the exception made the alarming message go away. The source code for the NodeJS FunctionLoader seems to be here: It's possible that testing the value of File (on Windows) Line 20055 class FunctionLoader {
constructor() {
this._loadedFunctions = {};
}
load(functionId, metadata) {
// Add this test
if (metadata.isProxy) {
console.log("FunctionLoader.load : metadata.isProxy === true : exiting early");
return;
}
// Optionally - return early if scriptFilePath is empty
// if (!scriptFilePath) {
// console.log("FunctionLoader.load.scriptFilePath was not supplied : exiting early");
// return;
// } |
Error message cropped up today when locally running functions:
Haven't changed proxy configs in a while - appears to be either unexpected schema change or bug/regression in Azure Functions Core Tools/Function Runtime.
Removed node_modules, bin, obj, etc and did
npm i
. Same result.Azure Functions Core Tools: 2.7.1373 - Commit hash: cd9bfca)
Function Runtime Version: 2.0.12507.0
proxies.json (config hasn't changed in a while)
The text was updated successfully, but these errors were encountered: