You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command-line arguments that the language worker receives from the Functions Host have generic names (such as 'host' and 'port'). This can cause conflicts with other environment variables in certain environments. To address this issue, the Functions Host will now send a new set of arguments prefixed with functions-<argumentname>. This will be in addition to the existing arguments.
With the current parsing implementation, the language worker throws and it is not able to start given that the new prefix options are unknown, see error below:
ERROR(S):
Option 'functions-uri' is unknown.
Option 'functions-workerid' is unknown.
Option 'functions-requestid' is unknown.
Option 'functions-grpcmaxmessagelength' is unknown.
To resolve the language worker parsing issue, we need to do the following:
Add support for the new prefix arguments.
Ignore unknown arguments (this will be useful in preparation for number 3).
After the Functions Host changes have propagated, and we have a Core Tools version with this new Functions Host, we can remove the parsing support for the old arguments.
Could you set the parser setting to ignore unknown arguments? The command line parser supports that and it might be a better option than the current strict model. Unless you do that, you might not be able to remove the old option.
The command-line arguments that the language worker receives from the Functions Host have generic names (such as 'host' and 'port'). This can cause conflicts with other environment variables in certain environments. To address this issue, the Functions Host will now send a new set of arguments prefixed with
functions-<argumentname>
. This will be in addition to the existing arguments.With the current parsing implementation, the language worker throws and it is not able to start given that the new prefix options are unknown, see error below:
To resolve the language worker parsing issue, we need to do the following:
This is the PR that contains the Functions Host changes: Azure/azure-functions-host#9514.
/cc @fabiocav @kshyju
The text was updated successfully, but these errors were encountered: