[wp-trac] [WordPress Trac] #52933: Error in browser console when newly published post is previewed a second time

WordPress Trac noreply at wordpress.org
Mon Mar 29 05:15:53 UTC 2021


#52933: Error in browser console when newly published post is previewed a second
time
-------------------------+-------------------------------------------------
 Reporter:               |       Owner:  (none)
  garethhadfield         |
     Type:  defect       |      Status:  new
  (bug)                  |
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:  5.7
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  ui, javascript, administration,
                         |  rest-api
-------------------------+-------------------------------------------------

Comment (by garethhadfield):

 If anyone would like I can provide a login for a test website here
 http://wp01.opdiv.com

 On this site, the console error is
 Failed to load resource: the server responded with a status of 400 (Bad
 Request) http://wp01.opdiv.com/wp-
 json/wp/v2/posts/17/autosaves?_locale=user

 And the file http://wp01.opdiv.com/wp-
 json/wp/v2/posts/17/autosaves?_locale=user
 returns:
 {"code":"rest_cannot_read","message":"Sorry, you are not allowed to view
 autosaves of this post.","data":{"status":401}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52933#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list