Nextjs ISR netlify-odb-handler GraphQL TLS timeout FetchError

Hello, on our site (Netlify App) currently having an issue where our ISR function is timing out when querying our CMS on revalidate calls. Not exactly sure what the problem is beyond the fact that it’s a fetch error.

Here’s the log:
06:06:56 PM: a15967db INFO [GET] / (ISR)
06:06:56 PM: a15967db Duration: 751.50 ms Memory Usage: 90 MB Init Duration: 210.28 ms 06:08:09 PM: 3c5cfc17 INFO [GET] / (ISR)
06:08:09 PM: 3c5cfc17 Duration: 48.53 ms Memory Usage: 92 MB 06:09:42 PM: 3368dd2e ERROR FetchError: request to https://graphql.datocms.com/ failed, reason: socket hang up
at ClientRequest. (/var/task/node_modules/cross-fetch/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’
}
06:09:42 PM: 3368dd2e INFO [GET] / (ISR)
06:09:42 PM: 3368dd2e Duration: 51.49 ms Memory Usage: 95 MB 06:10:47 PM: 3368dd2e ERROR FetchError: request to https://graphql.datocms.com/ failed, reason: Client network socket disconnected before secure TLS connection was established
at ClientRequest. (/var/task/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (events.js:400:28)
at TLSSocket.socketErrorListener (_http_client.js:475:9)
at TLSSocket.emit (events.js:400:28)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:82:21) {
type: ‘system’,
errno: ‘ECONNRESET’,
code: ‘ECONNRESET’
}
06:10:47 PM: a5386c77 INFO [GET] / (ISR)
06:10:47 PM: a5386c77 Duration: 11.79 ms Memory Usage: 95 MB

To expand on this - here’s our getStaticProps return on nextjs.
image

Here’s what the request function does:
image

Hey there, @basjmontech :wave:

Thanks for reaching out! Sorry to hear you are encountering difficulty. Can you please share a link to your public repo so that we can look into this further? Additionally, can you please share a full copy of your latest deploy log?

Thanks so much!

Hi @hillary! Sorry for the late reply. This is still very important to us and our launch. We’re considering netlify vs competitors and this might be a differentiator.

I’ve uploaded the repo to this link: https://github.com/JoshMontech/netlifyPoC
Build Log: 7:14:29 PM: Build ready to start7:14:31 PM: build-image version: 122b31996ccaf - Pastebin.com

Hey @basjmontech

Some issues with ISR were fixed in version 4.2.4 of the plugin. Would you be able to try that?