Sometimes got error ECONNRESET, ETIMEDOUT

Hello Prismic team,

I'm Gavin, developer of bikebizstorefront prismic repo. My app is NextJS and I sometimes got Prismic error at getStaticProps of NextJS server side, see details below.

Could you help me check your server side? Thank you.

Get department detail error: FetchError: request to https://bikebizstorefront.prismic.io/graphql?query= %20%20%20%20%20%20query{ %20%20%20%20%20%20%20%20allDepartments(uid_in%3A["new-bikes"%2C"used-bikes"%2C"road-gear"%2C"mx-gear"%2C"adventure-gear"%2C"accessories"%2C""]){ %20%20%20%20%20%20%20%20%20%20edges{ %20%20%20%20%20%20%20%20%20%20%20%20node{ %20%20%20%20%20%20%20%20%20%20%20%20%20%20_meta%20{ %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20uid %20%20%20%20%20%20%20%20%20%20%20%20%20%20} %20%20%20%20%20%20%20%20%20%20%20%20%20%20page_heading_1 %20%20%20%20%20%20%20%20%20%20%20%20%20%20page_heading_2 %20%20%20%20%20%20%20%20%20%20%20%20%20%20department_image %20%20%20%20%20%20%20%20%20%20%20%20%20%20hero_image_desktop %20%20%20%20%20%20%20%20%20%20%20%20%20%20hero_image_mobile %20%20%20%20%20%20%20%20%20%20%20%20%20%20meta_title %20%20%20%20%20%20%20%20%20%20%20%20%20%20page_paragraph %20%20%20%20%20%20%20%20%20%20%20%20%20%20meta_description %20%20%20%20%20%20%20%20%20%20%20%20%20%20department_preHeader %20%20%20%20%20%20%20%20%20%20%20%20%20%20shop_by_brand_slider_content{ %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20brand_logo%2C %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20brand_link%2C %20%20%20%20%20%20%20%20%20%20%20%20%20%20} %20%20%20%20%20%20%20%20%20%20%20%20%20%20faq{ %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20question %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20answer %20%20%20%20%20%20%20%20%20%20%20%20%20%20} %20%20%20%20%20%20%20%20%20%20%20%20%20%20faq_title %20%20%20%20%20%20%20%20%20%20%20%20%20%20collections{ %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20collection_image %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20collection_title %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20collection_slug %20%20%20%20%20%20%20%20%20%20%20%20%20%20} %20%20%20%20%20%20%20%20%20%20%20%20} %20%20%20%20%20%20%20%20%20%20} %20%20%20%20%20%20%20%20} %20%20%20%20%20%20} %20%20%20%20 failed, reason: read ECONNRESET

at ClientRequest. (/app/node_modules/node-fetch/lib/index.js:1461:11)
at ClientRequest.emit (node:events:327:20)
at TLSSocket.socketErrorListener (node:_http_client:478:9)
at TLSSocket.emit (node:events:327:20)
at emitErrorNT (node:internal/streams/destroy:194:8)
at emitErrorCloseNT (node:internal/streams/destroy:159:3)
at processTicksAndRejections (node:internal/process/task_queues:80:21) {

List categories by collection UID error: FetchError: request to https://bikebizstorefront.prismic.io/graphql?query= %20%20%20%20%20%20query{ %20%20%20%20%20%20%20%20allCollections(uid%3A"road-jackets"){ %20%20%20%20%20%20%20%20%20%20edges{ %20%20%20%20%20%20%20%20%20%20%20%20node{ %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20categories{ %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20category_title %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20category_slug %20%20%20%20%20%20%20%20%20%20%20%20%20%20} %20%20%20%20%20%20%20%20%20%20%20%20} %20%20%20%20%20%20%20%20%20%20} %20%20%20%20%20%20%20%20} %20%20%20%20%20%20} %20%20%20%20 failed, reason: read ETIMEDOUT

Hey @GavinNUS ,

It looks like your endpoint URL is missing the cdn segment.

Currently, it is:

https://bikebizstorefront.prismic.io/graphql

It should be:

https://bikebizstorefront.cdn.prismic.io/graphql

Let me know if that helps :slight_smile:

Best,
Sam

Hello @samlittlefair ,

Let me try and tell you soon.

Thanks for your support.
Regards,
Gavin NUS.

1 Like

This thread has been closed due to inactivity. Flag to reopen.