Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When there are many blocks or the code is lengthy, it displays 'The response is not a valid JSON response' #293

Open
holizero opened this issue Feb 15, 2024 · 6 comments

Comments

@holizero
Copy link

When there are many blocks or the code is lengthy, upon saving a post, it displays 'The response is not a valid JSON response.' Is this a memory issue with WordPress? It's disappointing.

@KevinBatdorf
Copy link
Owner

I haven't seen that before and have seen some long posts. How long is the post?

Do you know how to check what the server response is from the Network tab in the browser's dev tools?

@holizero
Copy link
Author

Hi, when I look at the developer tools, I see the phrase 502 Bad Gateway.

Is this what you want?

@holizero
Copy link
Author

My nationality is Korean, but when I looked at the network tab I mentioned, I saw a response message from the hosting company.

First, I contacted the hosting company. Thanks for the reply :)

@KevinBatdorf
Copy link
Owner

Ah ok. Yeah maybe the host firewall. Well, after you hear back let me know if I can help some how.

@holizero
Copy link
Author

Hello. I asked the server administrator (hosting provider), and they said that if you input and save more than 4000 bytes of information into this plugin, Apache will shut down abnormally. Could you please test it out for me?

@KevinBatdorf
Copy link
Owner

Apache should be able to take a 2GB payload. 4kb is tiny.

What if you remove some of the code? Does it work fine? For example, remove 50% of the lines

Do you have Hangul characters in there? If yes, can you try removing those and see if there's a difference?

Can you share the code you're using? Maybe it's something else

You can paste it here and keep it secret if you need to.

https://gist.github.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants