gatsby-source-notion-database icon indicating copy to clipboard operation
gatsby-source-notion-database copied to clipboard

Getting fetch error on netlify production sites, but not on development

Open conradlin opened this issue 4 years ago • 3 comments

I was curious if you were experiencing the same problem I experience when deploying to production on Netlify; I sometimes experience 'fetch error', but never on development when running yarn develop or gatsby develop.

image

conradlin avatar Jun 05 '20 17:06 conradlin

In addition to this, I am getting an error where in production to Netlify, longer articles are getting cut short.

babzcraig avatar Jul 16 '20 19:07 babzcraig

https://github.com/mayneyao/gatsby-source-notion-database/blob/master/src/getPageHtml.js#L9

need more time to fetch long html. i have no time to fix this , PR welcome :D

mayneyao avatar Jul 17 '20 03:07 mayneyao

Great! I can get to this tomorrow. Should we increase the wait time x3? I tested a waitFor value of 24000 with Netlify and it seemed to work just fine.

babzcraig avatar Jul 17 '20 23:07 babzcraig