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
I can reproduce, I'm almost sure this has to do with the fact that Node.js 10 is built with OpenSSL 1.1.0, but on the image you mentioned libcurl is built with OpenSSL 1.0.0.
I've tried the image arm32v7/node:8 (Node.js 8 is built with OpenSSL 1.0.0) and it does seem to work. The versions must match because Node.js itself also exports some OpenSSL symbols. I will investigate this further this week to make sure that is the problem.
JCMais
changed the title
Using node-libcurl inside docker container fails with "out of memory" due to wrong package suggested in readme
Using node-libcurl inside arm32v7 docker container fails with "out of memory" due to wrong package suggested in readme
May 25, 2019
Confirmed this is the issue, you must use a matching OpenSSL version to the one used by Node.js. Otherwise, you are going to get this error. The reason is the one I mentioned above, see issue here for more details #164.
So basically, you must rebuild libcurl with the OpenSSL version Node.js uses, or use other TLS backend, as you did.
We have Dockerfile based on
arm32v7/node:10-slim
.As mentioned in the
README.md
, we installlibcurl4-openssl-dev
.The build works with it, but using
node-libcurl
to download file with https fails with out of memory.Installing
libcurl4-gnutls-dev
instead fixes the issue.I don't know why the build works (?) though. I don't have the time to look into this any further, but I thought it might help somebody.
Maybe this could be mentioned in the
README.md
?Thanks a lot for your work
The text was updated successfully, but these errors were encountered: