Title: Getting response &#8211; code: &#8216;invalid_json
Last modified: July 3, 2023

---

# Getting response – code: ‘invalid_json

 *  Resolved [cooperk937](https://wordpress.org/support/users/cooperk937/)
 * (@cooperk937)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/getting-response-code-invalid_json/)
 * Hi there, our website has recently started throwing back “{code: ‘invalid_json’,
   message: ‘The response is not a valid JSON response.’}” upon successful submission.
 * Do you have any idea why?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgetting-response-code-invalid_json%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/getting-response-code-invalid_json/#post-16867165)
 * It seems that the following message is added to REST API responses and that is
   breaking the JSON syntax.
 * > ERROR: Column ‘FinalScore’ cannot be null
 * Do you have any idea what it is?
 *  Thread Starter [cooperk937](https://wordpress.org/support/users/cooperk937/)
 * (@cooperk937)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/getting-response-code-invalid_json/#post-16868141)
 * Hi there,
 * That’s amazing thanks, that’s allowed me to debug and fix the issue.
 * Could you please let me know how you can read the REST API responses?
 *  I could only see:
   `{code: ‘invalid_json’, message: ‘The response is not a valid
   JSON response.’}`In the browser console log which isn’t that helpful…
 * Many thanks,
   Karl
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/getting-response-code-invalid_json/#post-16870305)
 * I guess it’s up to the configuration of the browser console. Try turning on output
   for XHR requests.
 *  Thread Starter [cooperk937](https://wordpress.org/support/users/cooperk937/)
 * (@cooperk937)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/getting-response-code-invalid_json/#post-16870814)
 * Ah, I’ve managed to find it, that will make my life much easier, many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Getting response – code: ‘invalid_json’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [cooperk937](https://wordpress.org/support/users/cooperk937/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/getting-response-code-invalid_json/#post-16870814)
 * Status: resolved