Build: `failed during stage 'Reading and parsing configuration files': unexpected end of JSON input`

Created on 24 Apr 2020  路  5Comments  路  Source: netlify/build

The following error message appears in the following deploys:

failed during stage 'Reading and parsing configuration files': unexpected end of JSON input

Zendesk ticket: https://netlify.zendesk.com/agent/tickets/24880

This might be due to @netlify/config returning a non-JSON stdout.

bug

All 5 comments

Have asked customer for their netlify.toml file.

Support will want to follow up with that case when a log improvement is shipped so he can self-debug :)

I am having a hard time debugging this because of not being able to reproduce the build and not having a more descriptive error message.

I have added the following issue to print @netlify/config output to the build logs when it is invalid (i.e. it has a bug): https://github.com/netlify/buildbot/issues/707
If this gets released and the build is retried, we should be able to see @netlify/config output and hopefully the solution to this problem should be obvious. PR at https://github.com/netlify/buildbot/pull/708

We've asked the customer to retry with the new logging, will report back here in case they do!

Closing this. If this appears again, we should then get more information thanks to the additional logs.

Was this page helpful?
0 / 5 - 0 ratings