Skip to content

Fix a NODE_OPTIONS bug when using App-Insights#2090

Open
rafael-leon-in2l wants to merge 3 commits into
microsoft:mainfrom
rafael-leon-in2l:main
Open

Fix a NODE_OPTIONS bug when using App-Insights#2090
rafael-leon-in2l wants to merge 3 commits into
microsoft:mainfrom
rafael-leon-in2l:main

Conversation

@rafael-leon-in2l

@rafael-leon-in2l rafael-leon-in2l commented Aug 3, 2023

Copy link
Copy Markdown

When I add this application setting to the environment:

NODE_OPTIONS=--max_old_space_size=3072

Then the node App Service fails to start with this error in the logs:

2023-08-07T13:22:58.228747987Z export NODE_OPTIONS='--require /usr/local/lib/node_modules/applicationinsights/out/Bootstrap/Oryx.js ' $NODE_OPTIONS
2023-08-07T13:22:58.231456493Z PATH="$PATH:/home/site/wwwroot" node app-worker.js
2023-08-07T13:22:58.271047493Z /opt/startup/startup.sh: 11: export: --max_old_space_size: bad variable name

@rafael-leon-in2l rafael-leon-in2l requested a review from a team as a code owner August 3, 2023 13:23
@william-msft

Copy link
Copy Markdown
Contributor

Hi @rafael-leon-in2l could you provide more context regarding the bug you were seeing with NODE_OPTIONS?

@rafael-leon-in2l

Copy link
Copy Markdown
Author

I updated the description with the reproduction steps and fatal error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants