This is happening in two different netlify sites connecting to the same API.
Sites:
- vc-webhooks
- virtual-coffee-io
The API in question is https://members.virtualcoffee.io/api
I can’t post the access key here, but I did verify it’s the same in netlify env as in local.
in vc-webhooks, there is a background function that is calling a graphql api via graphql-request
In virtual-coffee-io
it is a normal function via remix
In both instances, I’m getting the following error in the function logs:
Jun 17, 11:13:50 AM: 6617c0a8 ERROR FetchError: request to https://members.virtualcoffee.io/api failed, reason: socket hang up
at ClientRequest.<anonymous> (/var/task/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (events.js:400:28)
at TLSSocket.socketOnEnd (_http_client.js:499:9)
at TLSSocket.emit (events.js:412:35)
at endReadableNT (internal/streams/readable.js:1334:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET'
}
These functions are working fine locally via netlify dev
and were working fine on netlify up until two days ago. The API responses also respond quickly with no problems when reached via insomnia or other requests.
I really don’t know what to do anymore - it’s nuking our entire site. What have I missed?