[wp-trac] [WordPress Trac] #57510: /wp/v2/users/me returns rest_not_logged_in when using plain permalinks
WordPress Trac
noreply at wordpress.org
Mon Jan 23 00:01:01 UTC 2023
#57510: /wp/v2/users/me returns rest_not_logged_in when using plain permalinks
-------------------------------+------------------------------
Reporter: clairedev | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: rest-api
-------------------------------+------------------------------
Comment (by peterwilsoncc):
Hi Clair,
I checked with the above formatting as wasn't able to reproduce the error.
In both cases the following provided the expected results from the
endpoint:
{{{
$ curl -u admin:applicationpassword 'http://wp-
dev.local/?rest_route=/wp/v2/users/me'
$ curl -u 'admin:application password with spaces' 'http://wp-
dev.local/?rest_route=/wp/v2/users/me'
}}}
Are you able to reproduce this on a site without any plugins and using a
default theme?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57510#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list