How to fix: “The editor has encountered an unexpected error”?

Could you please try to configure Nginx as below?

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

From https://github.com/WordPress/gutenberg/issues/12655

I encountered this error. After I correct my Nginx config, it works very well.

tech