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 is crashing while using bcrypt's async methods #674
Comments
The app is crashing for asynchronous functions only.
|
Please give the error message |
Try to run without nodemon and post the error. You may be hitting an unhandled promise rejection error |
can confirm the above behaviour on windows 10. both on node 8.9.2 and 10.13.0 using 3.0.2 |
@AyKarsi, I have tried on Windows 7 with node 9.0.0 only and it is working only for synchronous methods, not for asynchronous. |
Strange, I do not find that behavior on Windows 10 and Node 8 or Node 11 |
@manishmawat (Edited: Sorry for the mistake it was bcrypt-3.0.2 and not bcrypt-3.0.1) |
Could you please create a crashdump using DebugDiag? https://blogs.msdn.microsoft.com/chaun/2013/11/12/steps-to-catch-a-simple-crash-dump-of-a-crashing-process/ |
Hi, here is the zipped crashdump using DebugDiag. https://www.dropbox.com/s/om6aszrmju1bfbo/FullCab_Date__11_28_2018__Time_09_27_33AM_1.cab?dl=0 |
Solution here: |
For "bcrypt": "^3.0.2", Upgrading to Node v10 solved the problem for me. |
Looks like the resurfacing of a similar error for NodeJS in OSX. The ABI compatibility of NodeJS is horrible. I'm still investigating a fix |
Having the same problem, using Windows 10 with Node v8.9.4 |
same problem, using archlinux with node v8.9.2 |
This thing keep silently crashing my app. |
I mean "silently terminating", because that's the real term, callback simply isn't called. |
Should be fixed with new version and using a NodeJS version other than v8.9.x |
I had the same issue with Node.js version 8.9.4 and I successfully fixed the issue with installing recommended version of bcrypt based on my Node.js version I fixed the issue with bcrypt@2.0.1 Important note: Before you install bcrypt, first check version of Node.js on your machine, and based on that, install appropriate version of bcrypt |
@mijatovicmile All versions >= 1.0.3 are compatible with NodeJS 8 except v8.9.x that minor version is problematic. |
Encountered this today while running inside Docker. In my case this was caused by using |
@gdrbyKo1 Thank you mate, you really saved me there! I was having the exact same problem and could not figure out was wrong since my nestjs logs inside the docker container did not show anything :D |
I've run into a similar problem. My NestJS app functions fine locally, but when I moved it to a Docker container and attempted to invoke 'bcrypt' with version 5.1.1, it caused issues. Initially, I was using the 'node:alpine' image, but after switching to 'node' everything seems to be working smoothly now. |
Thanks I ran into the same problem and as @EdgarAlonsoPerez said using bcrypt 5.1.1 with node instead of node:alpine solved the problem. |
I've verified that using bcrypt 5.1.1 with Node.js 21 on Alpine 3.18 leads to a crash without any specific error. However, when I switched to the Node.js 21 slim variant, the issue was resolved. |
app is crashing while using bcrypt package in the app, to test it separately I put the code in a separate file as below.
tried to put the constant (10) value in the hash function instead of getting in getSalt function.
tried to catch the error in different ways but not getting any error.
if I comment the bcrypt function then everything else (if I have anything) working fine in the function.
Version: node : 9.0.0 npm: '5.5.1' "bcrypt": "^3.0.2"
OS: Windows 7.
The text was updated successfully, but these errors were encountered: