-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Loading the site editor hangs #60137
Comments
@ajlende, are you still able to reproduce the issue consistently? |
Yeah, I've still been working around it by reverting the commit in my local development. It's looking like something is causing the body of the However, getting the errors from the Redux state is probably still a worthwhile task to come out of this even if it just means sending them to the error console with a stack trace to help with debugging and reporting problems if this ends up happening to anyone else. |
@ajlende, what env are you using for local development? I'm intentionally trying to reproduce the same editor's state, but without any success so far. I've tried throwing errors in entity resolves, but the editor still loads even though it's in a broken state. IIRC, silencing the errors in the Redux state was an intentional decision. The actions have options to throw them, but selectors rely on @tyxla, you worked on improving the Site Editor's loading state. Do you have any clues as to why this might be happening? |
The response has to return 200 (success) with an incorrect empty body for the bug to trigger.
We don't need the errors thrown, just logged in the JS console so you don't need to install the Redux extension to see if you have errors. |
@ajlende I was unable to reproduce this earlier today. Could you access and share with us the malformed request response with the errors, in case that sheds more light on what the underlying issue might be? |
Thanks for taking a look @tyxla! I just tested |
Description
Loading the site editor hangs while loading. No errors showed up in the JS console or in the PHP error logs, but I found some that were being hidden in the
core
Redux state.Reverting 959b616 fixes the issue.
It seemed this
OPTIONS
request added in https://github.com/WordPress/gutenberg/pull/59243/files#diff-38a74d088ea018dbbea00d8f5bd5c03ea54bfc099d1d1836686c24a5582bf579R420-R423 isn't returning JSON for me, triggering the errors.Step-by-step reproduction instructions
@Mamaduka and @jeryj both tried to reproduce the issue, but were unable to, so it must not affect all site configurations.
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: