Stuck on "Loading DatoCMS content" since 3.0.0

Hello there :wave:

I’m having a really strange issue since upgrading from 2.6.18 to 3.0.0 (and I’ve tried every version including 3.0.12 without luck). I’ve also posted this as an issue on GitHub here.

My gatsby develop gets stuck loading DatoCMS content and systematically times out after 50 minutes (usually this step takes around 1 minute on 2.6.18).

success open and validate gatsby-configs, load plugins - 1.940s
success onPreInit - 0.007s
success initialize cache - 0.166s
success copy gatsby files - 0.264s
success Compiling Gatsby Functions - 0.342s
success onPreBootstrap - 0.385s
success loading DatoCMS schema - 1.786s
success createSchemaCustomization - 1.951s
not finished source and transform nodes - 2892.997s
not finished loading DatoCMS content - 2892.844s

Here are a few things I tried without luck:

  • Removing all createPage statements in gatsby-node.js except my homepage
  • Using npm instead of yarn
  • Fresh install of node_modules and yarn.lock
  • Removing all plugins in gatsby-config.js except gatsby-source-datocms
  • Using gatsby develop --verbose but doesn’t show any more information

I don’t really know what else to try because there’s no error or warning… Note that gatsby build is stuck as well.

For reference here are my Gatsby plugins versions in package.json:

{
    "gatsby": "^4.4.0",
    "gatsby-background-image": "^1.5.3",
    "gatsby-image": "^3.11.0",
    "gatsby-plugin-create-client-paths": "^4.4.0",
    "gatsby-plugin-gatsby-cloud": "^4.4.0",
    "gatsby-plugin-image": "^2.4.0",
    "gatsby-plugin-manifest": "^4.4.0",
    "gatsby-plugin-offline": "^5.4.0",
    "gatsby-plugin-react-helmet": "^5.4.0",
    "gatsby-plugin-react-helmet-canonical-urls": "^1.4.0",
    "gatsby-plugin-react-svg": "^3.0.0",
    "gatsby-plugin-robots-txt": "^1.6.14",
    "gatsby-plugin-sass": "^5.4.0",
    "gatsby-plugin-sharp": "^4.4.0",
    "gatsby-plugin-sitemap": "^5.4.0",
    "gatsby-plugin-smoothscroll": "^1.2.0",
    "gatsby-source-datocms": "^3.0.12",
    "gatsby-transformer-remark": "^5.4.0",
    "gatsby-transformer-sharp": "^4.4.0",
}

Do you have any ideas, or maybe some more troubleshooting steps I should try?

Thank you so much for your help,
Nicolas

Hello @ikeys-realty

Could you try, using the most recent version of the plugin, adding the following configuration to your gatsby-config.js file, and re-running the command?

      pageSize: 100,

Perhaps also try it with pageSize: 50 if you still get time-outs.

Let me know if it works!

Hello @m.finamor,

Just tried with version 3.0.12 and same thing is happening, even with pageSize: 50…

@ikeys-realty could you send to us at support@datocms.com your node version, and perhaps the repo for your local project so we can try and reproduce the error? This way we can narrow down the problem :slight_smile:

Thank you!

Alright, I’ve just sent you the email. For reference my Node version is 14.15.2.

Thank you for your help,
Nicolas

I am having this same issue in a new duplicate of the previous project. any pointer to how to fix

Hello @ikeys-realty

Did you follow the same steps provided in the previous email thread we exchanged about this?

Hi, I will be Glad if you can forward the email thread to another email. the previous developer left.

team@ikeys-realty.com

you can copy alabamustapha@gmail.com