Solvedgutenberg The editor has encountered an unexpected error. (solved by updating the try_files nginx configuration)

Bug Description
Cannot edit a post/draft, it shows 'the editor has encountered an unexpected error'.

This happen since upgraded to Gutenberg Version 3.8.0

I've been tried to

  • Disabled all plugins (included Yoast SEO) and browser addons.
  • Attempt recovery doesn't work

Error code

    at i (
    at An.filter (
    at yh (
    at lg (
    at mg (
    at gc (
    at vb (
    at ub (


  • WordPress 4.9.8
  • Gutenberg 3.8.0
  • WordPress is running in localhost with Nginx

Now i'm working with gutenberg 3.7.0 downloaded from

30 Answers

✔️Accepted Answer

Just to confirm, the following worked for me:

try_files $uri $uri/ /index.php$is_args$args;

@Zenexer & @benpbolton

Other Answers:

Just a note here that nginx configuration templates don't reference try_files directives in this manner; if Gutenberg is going to require

    try_files $uri $uri/ /index.php$is_args$args;

then associated references like:

... may need updating

Solved my issue with:

Content-Security-Policy: worker-src 'self' * data: blob:;

previously I have

Content-Security-Policy: worker-src 'self' data: blob: * ;

PD: Solved in main domain but still here in wordpress sites running as folders, but error is something different:

P.D. 2: Solved in sites running as folders. The issue was a misconfiguration in nginx:
try_files $uri $uri/ /om/index.php$is_args$args ;

The $is_args$args part are missing.

The $is_args$args addition to try_files did it for me. CSP didn't make a difference.

@danielbarenkamp add to root

location / {
    try_files $uri $uri/ /index.php$is_args$args;

More Issues: