Deploy failed - not valid JSON

Hi, @dba_communications. The first line shows that an error happened making the JSON request:

Error fetching /global.json 500 Internal Server Error

That error is being returned by your CMS which Netlify doesn’t control.

So, instead of getting JSON, the HTTP request returns HTML stating a 500 status code error occurred. However, your code isn’t checking for fetch errors so it proceeds and tried to process the HTML like it was JSON.

However, the JSON parses will never properly process the HTML and this is causing a secondary error. The second line shows the start of the HTML error message:

"<!DOCTYPE "

Next steps are to add error handling to catch and possibly retry when 500 status errors occur and to debug the third-party CSM to find out why it is returning 500 status errors.