how to get a more significant error response from ServerSideRender

After discovering the exact problem in this case, the request headers being too large because ServerSideRender sending too many attributes in a GET request, I opened a ticket on the Gutenberg development repository proposing a few possible solutions for this issue. And the issue had actually already been addressed because I wasn’t the first one to have this problem, so there is currently a pull request to solve this by allowing POST request to be made instead of GET requests.

As for the initial question of getting a more significant response from the ServerSideRender when there is an error, that still stands. It would be helpful to see something more than Error loading block: The response is not a valid JSON response. Perhaps seeing what the exact http status code from the response is, instead of having to dig for it in the Network requests of the browser’s Inspector Tools…

Leave a Comment