question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Analytics setup: Error: The response is not a valid JSON response

See original GitHub issue

Bug Description

Some users have been encountering issues when connecting the Analytics module, with the error below appearing when clicking on the “Configure Analytics” button Error: The response is not a valid JSON response

image

Console errors:

VM2496:1 POST https://www.xxxx.xxx/wp-json/google-site-kit/v1/modules/analytics/data/settings?_locale=user 403
(anonymous) @ VM2496:1
b @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
c @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
forEach.t.<computed> @ googlesitekit-vendor.js?ver=1.7.0:1
n @ googlesitekit-vendor.js?ver=1.7.0:1
_next @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
u @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
i @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
o @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
e @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
u @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
i @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
k @ googlesitekit-vendor.js?ver=1.7.0:1
set @ googlesitekit-module.js?ver=1.7.0:4
(anonymous) @ googlesitekit-module.js?ver=1.7.0:17
k @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
C.forEach.t.<computed> @ googlesitekit-vendor.js?ver=1.7.0:1
k @ googlesitekit-vendor.js?ver=1.7.0:1
e @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
i @ googlesitekit-vendor.js?ver=1.7.0:1
AsyncIterator._invoke @ googlesitekit-vendor.js?ver=1.7.0:1
C.forEach.t.<computed> @ googlesitekit-vendor.js?ver=1.7.0:1
l.async @ googlesitekit-vendor.js?ver=1.7.0:1
value @ googlesitekit-module.js?ver=1.7.0:17
m @ googlesitekit-vendor.js?ver=1.7.0:1
k @ googlesitekit-vendor.js?ver=1.7.0:1
(anonymous) @ googlesitekit-vendor.js?ver=1.7.0:1
E @ googlesitekit-vendor.js?ver=1.7.0:1
Aa @ googlesitekit-vendor.js?ver=1.7.0:1
T @ googlesitekit-vendor.js?ver=1.7.0:1
Ba @ googlesitekit-vendor.js?ver=1.7.0:1
Kd @ googlesitekit-vendor.js?ver=1.7.0:1
rt @ googlesitekit-vendor.js?ver=1.7.0:1
Qd @ googlesitekit-vendor.js?ver=1.7.0:1
Hc @ googlesitekit-vendor.js?ver=1.7.0:1
Pd @ googlesitekit-vendor.js?ver=1.7.0:1
e.unstable_runWithPriority @ googlesitekit-vendor.js?ver=1.7.0:1
Hr @ googlesitekit-vendor.js?ver=1.7.0:1
et @ googlesitekit-vendor.js?ver=1.7.0:1
Nd @ googlesitekit-vendor.js?ver=1.7.0:1
Show 30 more frames

Main WordPress support topic to work from: https://wordpress.org/support/topic/error-the-response-is-not-a-valid-json-response-3/#topic-12689616-replies

Additional information:

  • Occurs with all plugins temporarily deactivated
  • Matching URLs in WP General settings
  • No mixed content, all https
  • Site Health information provided in submission form
  • Site Kit 1.7.0
  • Module status active in Site Health
  • Checked from browser incognito with plugins deactivated

Awaiting additional information

Other recent reported topics (with same JSON error in the past month):


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

QA Brief

Changelog entry

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
bethanylangcommented, May 18, 2021

Hi @leqnam! Support for Site Kit is provided via the support forums. If you’d like to open a new topic there, we’d be happy to help.

0reactions
cadenticcommented, Jun 20, 2021

hi

I need a specific IP address or port to enable from security group as I am using ec2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Analytics connection gives “Error: The response is not a valid ...
Hi support team! From WordPress admin while in incognito mode in Chrome, I've tried to setup and reset the Site Kit plugin several...
Read more >
6 Fixes for "the response is not a valid JSON response" Error in
1. Reset the permalinks ... Before you try anything else, you should try resetting your permalinks to resolve the invalid JSON response error....
Read more >
How to Fix the Invalid JSON Error in WordPress? - Rank Math
In this article, learn how to fix the invalid JSON error - 'Updating failed. The response is not a valid JSON response.' with...
Read more >
The response is not a valid JSON response - Google Support
The response is not a valid JSON response. I have created my Google Analytics account for this Rebondir ensemble account.
Read more >
How to Fix the Invalid JSON Response Error in WordPress
If something goes wrong with this communication, WordPress will show the "The response is not a valid JSON response" message. It means that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found