We use ghost with gatsby through the
gatsby-source-ghost plugin. Our builds work fine locally, however, on Netlify we have been seeing the following error:
11:09:32 AM: error “gatsby-node.js” threw an error while running the onCreateNode lifecycle:
11:09:32 AM: failed to process https://casper.ghost.org/v2.0.0/images/ghost.png
11:09:32 AM: HTTPError: Response code 403 (Forbidden)
The Netlify support staff confirmed for me that others have been seeing this error in the last 2 weeks as well. They suggested we reach out to Ghost. It looks like there are some default URLs in the ghost-schema.js file. We were able to get around this issue by forking the
gatsby-source-ghost plugin and changing the URLs to be self-hosted ones.
I wanted to start a thread to see what we can do to resolve this long term:
- Are Netlify build machine IPs blocked from requesting ghost.org urls? If so, are there plans to lift those blocks?
- Could those default URLs be configured when we setup the plugin in gatsby? We wouldn’t mind configuring the URLs to ones that we host oursleves.