Hello - out of the blue today by Gatsby project would no longer deploy in Netlify, throwing a build error through gatsby-source-datocms and hitting up against the API endpoint.
My project builds locally and I’ve updated gatsby-source-datocms to the latest version. I’ve generated a new/checked my API token to make sure it’s visible to Netlify - I’m really at a loose end why this is happening! Each time I deploy and it fails, it’s one of the 2 issues below. Maybe I’ve done something silly and can’t remember - but would really appreciate some help here!
5:20:11 PM: error "gatsby-source-datocms" threw an error while running the createSchemaCustomization lifecycle:
5:20:11 PM: Invalid response body while trying to fetch https://site-api.datocms.com/site?include=item_types%2Citem_types.fields: Premature close
5:20:11 PM:
5:20:11 PM:
5:20:11 PM: FetchError: Invalid response body while trying to fetch https://site-api.datoc ms.com/site?include=item_types%2Citem_types.fields: Premature close
5:01:50 PM: error "gatsby-source-datocms" threw an error while running the createSchemaCustomization lifecycle:
5:01:50 PM: Invalid response body while trying to fetch https://site-api.datocms.com/docs/site-api-hyperschema.json: Premature close
5:01:50 PM:
5:01:50 PM:
5:01:50 PM: FetchError: Invalid response body while trying to fetch https://site-api.datoc ms.com/docs/site-api-hyperschema.json: Premature close