Faxes send perfectly in development mode using netlify-lambda.
I get a TLS error in production only.
Delivery Error { Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:1137:19)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at TLSSocket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickDomainCallback (internal/process/next_tick.js:218:9)
code: ‘ECONNRESET’,
path: null,
host: ‘rest.interfax.net’,
port: 443,
localAddress: undefined }
I got this message from an interfax employee regarding the issue:
Hello Sean,
Based upon the error, it seems to be related to the TLS and the possibly the cipher’s attempting to be used by your application. For a list of cipher’s our endpoint supports, please reference the image below and/or the following link: SSL Server Test: rest.interfax.net (Powered by Qualys SSL Labs)
Thank you,
Anthony Cox Technical Support Engineer, Client Services
your netlify istance name, for example: app-typescript.netlify.com
Hi @seanaguinaga , which version of node are you using locally? Can you try with node 10 and see if you have the same trouble? You can find more information on changing the node version for your function in Build functions | Netlify Docs
Our staff cannot see into your repo (only our build network can), just for future reference, Sean.
The only run of that function which I can see (by path) in the last week was on your “app” site, and returned a 200 OK which I guess means that things worked?
I don’t see any other initiations on our CDN in the past 30 days at that path, so maybe we never even called the function, or you have it running under a different name, or something?
3:49:37 PM: Delivery Error { Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:1137:19)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at TLSSocket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickDomainCallback (internal/process/next_tick.js:218:9)
code: ‘ECONNRESET’,
path: null,
host: ‘rest.interfax.net’,
port: 443,
localAddress: undefined }
3:49:37 PM: Delivery Error { Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:1137:19)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at TLSSocket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickDomainCallback (internal/process/next_tick.js:218:9)
code: ‘ECONNRESET’,
path: null,
host: ‘rest.interfax.net’,
port: 443,
localAddress: undefined }
Like I said before, this works fine locally and used to work fine in production! Alas, not anymore.
From Interfax:
Anthony Cox (Upland Success)
Nov 12, 17:27 UTC
Hello Sean,
Based upon the error, it seems to be related to the TLS and the possibly the cipher’s attempting to be used by your application. For a list of cipher’s our endpoint supports, please reference the image below and/or the following link: SSL Server Test: rest.interfax.net (Powered by Qualys SSL Labs)
Thank you,
Anthony Cox Technical Support Engineer, Client Services
We didn’t do anything differently. Just triggered the function from our end.
One thing to try would be setting your function to use Node12 by setting a runtime variable, specifically the AWS_LAMBDA_JS_RUNTIME variable should be set to nodejs12.x. Note that this variable is different from NODE_VERSION which sets the Node version for the buildbot only.