[wp-trac] [WordPress Trac] #54617: Add more details when site health checks fail
WordPress Trac
noreply at wordpress.org
Mon Dec 13 13:52:42 UTC 2021
#54617: Add more details when site health checks fail
-------------------------+--------------------------------------
Reporter: dingo_d | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Site Health | Version: trunk
Severity: normal | Keywords: 2nd-opinion dev-feedback
Focuses: |
-------------------------+--------------------------------------
I encountered a notice that said:
{{{
The REST API is one way WordPress, and other applications, communicate
with the server. One example is the block editor screen, which relies on
this to display, and save, your posts and pages.
The REST API call gave the following unexpected result: (401) <html>
<head><title>401 Authorization Required</title></head> <body
bgcolor="white"> <center><h1>401 Authorization Required</h1></center>
<hr><center>nginx</center> </body> </html> .
}}}
Now, I can see that it's probably something in nginx being blocked. But I
have no idea what or on what API call this error happened.
It would be awesome if this error was more like:
{{{
The REST API call gave the following unexpected result when checking the
following endpoint: ...
}}}
That way I could check this endpoint, see if I'm getting any errors or
not, poke around a bit.
I remember there being similar notices thrown by the site health check,
that were missing debug info.
Maybe some additional debugging information would be a good idea to have
as well, for developers. wp_debug_backtrace_summary() function could be
used if some issue was encountered with more debugging details.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54617>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list