We are deploying a static site generated with NuxtJS to Netlify, but half the times the process starts to generate static pages our external APIs calls to Contentful timeout. This is one of the error messages in the build log:
ERROR /products/odeon-vertical-black 12:32:32 PM: Error: timeout of 30000ms exceeded 12:32:32 PM: at createError (/opt/build/repo/node_modules/contentful/dist/contentful.node.js:941:15) 12:32:32 PM: at Timeout.handleRequestTimeout (/opt/build/repo/node_modules/contentful/dist/contentful.node.js:360:16) 12:32:32 PM: at ontimeout (timers.js:436:11) 12:32:32 PM: at tryOnTimeout (timers.js:300:5) 12:32:32 PM: at listOnTimeout (timers.js:263:5) 12:32:32 PM: at Timer.processTimers (timers.js:223:10)
This problem does not occur on our local machines, so i’m pretty confident that Contentful API never takes so long to respond ( that would be a huge problem for a content delivery API ).
I’m inclined to believe that it’s a problem with Netlify infrastructure, maybe we are flooding the kernel with too many open sockets? We are generating ~50 pages, so it’s not really a big number.
Has anyone experienced a similar issue?