-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Loading long env value from a file is crashing Node on Windows #52248
Comments
Related to #51289 |
@IlyasShabi Maybe you have thoughts on this? |
I have opened a pr aimed at solving this problem |
@mertcanaltin thanks for sending a PR I will review it asap |
@mertcanaltin @kibertoad Have you tried to reproduce it on a mac os? I'm unable to reproduce it on my end 🤔 it might be related to Windows maybe |
I couldn't reproduce it. Also, you don't need to call
|
I couldn't reproduce it on |
@anonrig @IlyasShabi I can confirm that this only happens in Windows. E. g. https://github.com/lokalise/node-service-template/actions/runs/8491928125/job/23264398029?pr=536 is green, but same tests are failing locally for me. |
I reproduced this on Node.js Windows CI |
Would it be a good idea to process the values by chunking them? |
@IlyasShabi Was the fix included in 22.0.0? I've tried running it, and it's still crashing with the same error when trying to load this value:
|
@kibertoad According to this https://github.com/nodejs/node/releases/tag/v22.0.0 I think it was not released |
Gotcha, thanks! Here's hoping it will be included into subsequent releases. As it wasn't a semver major, it should be possible to include it at any point. |
Version
20.12.0
Platform
Windows 11
Subsystem
process
What steps will reproduce the bug?
Try loading .env file with the following entry in it:
by running this code:
This fails with an error
Process finished with exit code -1073740791 (0xC0000409)
How often does it reproduce? Is there a required condition?
It is always reproduceable
What is the expected behavior? Why is that the expected behavior?
The value should be loaded correctly. This works with
dotenv
.What do you see instead?
An error
Process finished with exit code -1073740791 (0xC0000409)
Additional information
No response
The text was updated successfully, but these errors were encountered: