Hi there,
When building our Next website which has a lot of content, we get a lot of failing calls with the following error :
ERROR Unhandled error during request: FetchError: request to https://repo.cdn.prismic.io/api/v2 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (/var/task/packages/front/node_modules/node-fetch/lib/index.js:1461:11)
at ClientRequest.emit (events.js:314:20)
at TLSSocket.socketErrorListener (_http_client.js:427:9)
at TLSSocket.emit (events.js:314:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET'
}
Support hasn't been able to help. Anyone here with the same issue ? I have found a few threads mentioning this but so far no solution. That's a really blocking point for us.
This kinda looks like a rate limiting to me. The errors show up on different calls each time, and sometimes all is fine and then after a while nothing works.
I've tried to search for quotas / rate limits on the Prismic API and haven't been able to find anything about that. Is Prismic enforcing some kind of rate limiting on its REST API? Is there any kind of security that could block us thinking we're spamming?
Any help would be greatly appreciated as we're currently a few days ahead of a launch and content on the website is still growing a lot.
Thanks
Simon