Error: Failed to JSON.parse
-
Hi,
When I try to regenerate the CSS in Jetpack boost, I get the following error message:
Error: Failed to JSON.parse() the response from the server.Someone can help me?
Thanks,
Philippe
-
Hi Philippe!
Can you please share the URL of your site?
Hi
Yes, it’s https://cybersafeassociation.blog/
Hi @phil381,
I don’t seem to see any Jetpack plugin installed and activated on your end. Can you confirm that you are connected to Jetpack at all?
In case you only have Boost active in your site at the moment, it’d be useful for our investigation if you can temporarily install also the Jetpack plugin.Let us know when you’re done, and thanks for sorting this out with us!
Done ! I just uninstall and reinstall (and activate boost)… I have the same error
Hey @phil381,
I still can’t find your site in our records, so I can’t debug your issue ??
Would you mind installing and activating the Jetpack core plugin as well? It will be temporary as we tackle the issue you reported. Thanks!
Hi,
All is ok on https://jptools.wordpress.com/debug/?url=https://cybersafeassociation.blog
All tests have passed for?cybersafeassociation.blog?and your Jetpack powered site looks good to go!Maybe, your records use the old domain : gilletconsulting.be
Hey @phil381,
That is exactly what happened: our records still got the old domain, and we struggle tracking down the debugger. We updated the info so it looks good at our end too.
Are you still having trouble regenerating the CSS with Boost? I see a little connection issue happening at the moment: “cURL error 28: Operation timed out after 5001 milliseconds with 0 bytes received”.
This usually means that your web host is blocking some connections Jetpack needs in order to work correctly. If you still have troubles with the Boost’s CSS regeneration, that might be related.
Could you please contact your web host and ask them to make sure that the connections to and from *.wordpress.com are allowed and not in the blocklist??In terms of IP ranges, the following ranges need to be fully allowed: https://jetpack.com/support/hosting-faq/
Also, check for any security/caching plugins you may have enabled, and try temporarily disabling them to see if it fixes the problem. You may also want to search for any firewall on your server-side that might be blocking the communication with Jetpack – your host should be able to help you with that.
Let me know what you find out!
I don’t find the IP range needed. Please send me the right links to find it
Hey @phil381 –
Sure thing! Take a look at this page instead: https://jetpack.com/support/how-to-add-jetpack-ips-allowlist/#jetpack-ips
Apologies for the unnecessary extra back and forth! Let us know who you get on ??
Done but I already have the problem… Also try with desactivate wordfense but nothing change
Hi @phil381,
I see from the working Jetpack connection that Wordfence is still active in your site: could you try deactivating it again and check if the json error goes away?
If it doesn’t, can you please temporarily deactivate all your plugins and check if the problem gets fixed that way? If it works, then reactivate each plugin one by one to find out which one is causing problems.
Let me know what you find out, and we’ll take it from there if necessary. Thanks!
it’s desactivate, nothing change
Hi there, @phil381,
I am still seeing major issues with the Jetpack connection, which I still suspect being the main culprit of your problem.
I still see the following error: “cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received”. I also checked your xmlrpc.php file, and it’s being blocked (I see a 403 Forbidden error)
You have already allowlisted our IPs range, check for any security/caching plugins you may have enabled, and try temporarily disabling them to see if it fixes the problem. You may also want to search for any firewall on your server-side that might be blocking the communication with the xmlrpc.php file – your host should be able to help you with that.
If that helps, Boost is already working despite this problem, and I can see that with Boost, your desktop score has gone up one point (from 74 to 75), and your mobile moved up from 34 to 37 ??
Let us know how you get on with the overall Jetpack connection, and if you still see that JSON error at your end. Thanks!
yes, it’s normal since I reactivated wordfense over the weekend, I’m not going to leave the site without security. I’ve just deactivated it
Hi there, @phil381,
We still see blocks happening between your site and Jetpack – we suspect that is the root of the JSON error which is alaos affecting other areas of the Jetpack functionality.
I see Wordfence is deactivated and you enabled the Jetpack Protect feature instead: that should ensure a good protection while you keep Wordfence off ??
We need to fix the connection and make sure that the REST API can connect well, so we can investigate further on the Boost problem. I see there is also another plugin that might be affecting the connection: can you try deactivate the SiteLock plugin too?
Can you please reach out to your hosting provider and check with them if there’s anything else they can do to help us fix the connection? Thanks!
- You must be logged in to reply to this topic.