-
Notifications
You must be signed in to change notification settings - Fork 441
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
App Settings not available in some instances #5115
Comments
@pragnagopa / @mhoeger -- @davetse reached out to me internally about this, but I'm not sure what could be happening. Is it possible to be missing environment variables immediately after specialization of a language worker? Have either of you seen this in the past? It may be related to #1577, but I had him create a new issue as we hadn't heard anything on that one in a while (and it may have been .NET-specific). |
We encountered this as well with our node.js functions using EventHub and Scheduled triggers in West Europe, starting Oct 16th. We were configuring our function from env when the application was loaded and apparently the host wasn't necessarily fully initialized yet. Support was very helpful and their suggestion of pinning to an earlier runtime version 2.0.12742.0 remedied the situation. Hoping the hotfix in 2.0.12808 will resolve this. |
The same issue also occured with our Nodejs Azure functions which are using Storage Queue and Scheduled triggers (West Europe, Windows consumption plan). The problem started Oct 16th. Our function was missing some environment variables which are set from the app settings. Using an older version 2.0.12742.0 also fixed the issue. |
Investigating this issue. |
Thanks for the details all! The root cause appears to be: #4488. It is intermittent because the ordering of environment variables matters for this bug to appear, and the order of environment variables varies per instance. We're working on a fix. |
A fix has been applied, and if you bring your functions runtime version back to ~2, environment variables will be read normally again. |
@brettsam
Description
Some of my azure function instances are missing environment variables
Details
Provide the steps required to reproduce the problem:
context.log.info(
Creating cosmos client to host ${process.env["DOCUMENTDB_HOST"]});
Expected behavior
All instances will log "Creating cosmos client to host https://cosmosplaceholderurl.com"
Actual behavior
Some instances will log "Creating cosmos client to host undefined" repeatedly for entire lifetime of instance.
Other instances will be fine and log "Creating cosmos client to host https://cosmosplaceholderurl.com"
Known workarounds
Related information
The text was updated successfully, but these errors were encountered: