-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unpublished page causes a Gatsby build error #19
Comments
Unpublished pages should NOT be coming through with your production mode builds. The first thing I would check is that you aren't sourcing content in preview mode (ie: make sure you're using the Fetch API Key and AGILITY_API_ISPREVIEW=false). I would get that setup locally and test with |
ah thanks for the quick response - to be clear, this is in the preview mode. It's the CMS Preview build that fails and brings down the CMS Preview site. In local development, the build starts up fine, and the site works normally other than when visiting the unpublished page route where it throws an error. |
If you can show us the error you're getting the CMS Preview on Gatsby Cloud it might help. @joshua-isaac - tagging you on this in case you recognize anything. |
Sure thing, here's a dump of the build log.
|
Thanks! No doubt that's a bug - @joshua-isaac can you take a look? We may have fixed this already in V3, but it's worth a look to see if we need to patch that. |
hello @steveshaddick, thanks for reporting this! after testing on our end we can confirm this is a bug, i've created an internal ticket to get this fixed. unfortunately, the only workaround as of now would be to delete the unpublished page :( i can follow up with you as soon as this issue gets resolved. |
thanks very much @joshua-isaac , I'll see about deleting the page. I'm sure you don't have a clear idea exactly when the bug might be resolved, but might it be within a week or two, or should we expect longer than that? |
hi @steveshaddick, just wanted to follow up. we've identified the root cause of the issue here and should have someone working on the ticket to resolve the problem next week. again, will follow up with you :) thanks! |
thanks @joshua-isaac - I have a followup, actually, that may or may not be related. If it is not related, I can make a new issue thread. In the preview site, we have a blog index page that shows recent blog articles. Its data source is from the graphql query Is this the same issue? |
This sounds extremely similar to issue #8, however we can see explicit error messaging.
We are using Agility CMS, with Gatsby v2.32, gatsby-source-agilitycms v1.6.6, deploying with Gatsby Cloud to Netlify. We have set up the site according to Agility Gatsby CMS Starter instructions. I realize these are not the latest versions, but looking at the changelogs I can't see that this should be a reason for this error.
There is an unpublished page in Agility. The Gatsby Cloud build fails completely suring Building static HTML for pages because of a null reference to
data.agilitypage
within the data coming into the master page template (AgilityPage.js).Why is gatsby-source-agilitycms sourcing unpublished pages from Agility? How can this be avoided?
The text was updated successfully, but these errors were encountered: