Netlify build is failing with ServerError: Response not successful: Received status code 400

I need advice on how to debug my deploy error found at https://app.netlify.com/sites/zealous-tesla-4a6806/deploys/5ddff768b8d594517484ce91

Everything seems to chug along fine until towards the very end where I get the following error message:

8:36:38 AM: ServerError: Response not successful: Received status code 400
8:36:38 AM:     at Object.exports.throwServerError (/opt/build/repo/node_modules/apollo-link-http-common/lib/index.js:23:17)
8:36:38 AM:     at /opt/build/repo/node_modules/apollo-link-http-common/lib/index.js:48:21
8:36:38 AM:     at process._tickCallback (internal/process/next_tick.js:68:7)
8:36:38 AM: Function Dir: /opt/build/repo/functions
8:36:38 AM: Skipping functions preparation step: /opt/build/repo/functions not found

Since we’re dealing with a 400 error, I thought it was a missing environment variable, but the only one it relies on (my GraphQL schema token) seems to be in place, already.

Welp, I take it back. My issue was that my schema token had not yet been saved, it was just there in the window, waiting for me to do so. >\\\\<

Hi @onebrightlight! Welcome to netlify community.

Are things working as expected now?

Yup, everything is working as expected. This was my first attempt at building and it seems to have just taken a little bit of effort to familiarize myself with the process and where the config settings are in netlify itself!

1 Like