Title: Failed JSON
Last modified: April 27, 2025

---

# Failed JSON

 *  Resolved [embrasurespace](https://wordpress.org/support/users/embrasurespace/)
 * (@embrasurespace)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/failed-json/)
 * Just switched to SureMail. When I go to email logs on suremail, I get an error–
   Failed to fetch logs “the response is not a valid JSON response”
 * Any idea why this may be the case?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Avinash Kumar Sharma](https://wordpress.org/support/users/avi1020p/)
 * (@avi1020p)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/failed-json/#post-18438613)
 * Hello [@embrasurespace](https://wordpress.org/support/users/embrasurespace/) ,
 * The error “Failed to fetch logs: the response is not a valid JSON response” usually
   happens when:
    - The server returns an unexpected output (like a PHP warning) instead of proper
      JSON.
    - A security plugin or firewall (e.g., Wordfence, ModSecurity) blocks the API
      request.
    - The WordPress REST API is broken or restricted.
    - There’s an HTTP/HTTPS mismatch in your WordPress settings.
    - A plugin conflict is affecting the API response.
 * Temporarily disabling security plugins or checking server error logs may also
   help identify the cause.
 * Hope this helps!
   Best Regards,Avinash

Viewing 1 replies (of 1 total)

The topic ‘Failed JSON’ is closed to new replies.

 * ![](https://ps.w.org/suremails/assets/icon-256x256.gif?rev=3235320)
 * [SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers](https://wordpress.org/plugins/suremails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/suremails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/suremails/)
 * [Active Topics](https://wordpress.org/support/plugin/suremails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/suremails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/suremails/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Avinash Kumar Sharma](https://wordpress.org/support/users/avi1020p/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/failed-json/#post-18438613)
 * Status: resolved