Title: iThemes plugin initiated API calls generating Javascript errors
Last modified: September 8, 2023

---

# iThemes plugin initiated API calls generating Javascript errors

 *  Resolved [ironsoup](https://wordpress.org/support/users/ironsoup/)
 * (@ironsoup)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/ithemes-plugin-initiated-api-calls-generating-javascript-errors/)
 * Recently out of nowhere our WordPress site started generating javascript errors
   across all admin pages. The error is usually along the lines of:
 * `Uncaught (in promise) Error: Unhandled Promise Rejection: The response is not
   a valid JSON response.`
 * With an emphasis on “**The response is not a valid JSON response**” across all
   javascript errors on every admin page.
   Verified that with iThemes plugin disabled,
   the issue goes away. We have not updated our iThemes version for weeks and we
   are surprised to see this all of a sudden when we know everything was working
   fine / no js errors only several weeks ago.
 * The GET request generated by the iThemes plugin which causes the js error is:
   
   [https://<wpsite>/wp-json/ithemes-security/v1/admin-notices?_locale=user](https://<wpsite>/wp-json/ithemes-security/v1/admin-notices?_locale=user)
   The script making the request is:admin-notices-api.min.jsHas anyone else experienced
   this issue and know how to resolve? Many thanks in advance for any feedback.

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

 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/ithemes-plugin-initiated-api-calls-generating-javascript-errors/#post-17052901)
 * Hi [@ironsoup](https://wordpress.org/support/users/ironsoup/), apologies for 
   the delayed response! Can you please try regenerating your .htacess file by going
   to **WordPress Admin > Settings > Permalinks**, pressing the save button, and
   seeing if the error persists? If that doesn’t help, please conduct a [conflict check](https://help.ithemes.com/hc/en-us/articles/115003073433-Checking-for-a-Conflict#:~:text=How%20to%20Check%20For%20a%20Plugin%20Conflict)
   and let me know if the issue persists when using a default WP theme and only 
   the iTSec plugin is activated. Thanks!
    -  This reply was modified 2 years, 8 months ago by [chandelierrr](https://wordpress.org/support/users/shanedelierrr/).
 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/ithemes-plugin-initiated-api-calls-generating-javascript-errors/#post-17093137)
 * Hi there,
 * I hope the information I provided helped resolve the issue. Tracking notifications
   on this forum can become tricky over time, and since we haven’t received a response,
   I’ll mark this post resolved. 
   If you still require further assistance, feel 
   free to open a new support topic, and we’d be happy to assist. Thank you.

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

The topic ‘iThemes plugin initiated API calls generating Javascript errors’ is closed
to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [json](https://wordpress.org/support/topic-tag/json/)

 * 2 replies
 * 2 participants
 * Last reply from: [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/ithemes-plugin-initiated-api-calls-generating-javascript-errors/#post-17093137)
 * Status: resolved