[wp-trac] [WordPress Trac] #46309: Image upload failures when using Gutenberg gallery block.

WordPress Trac noreply at wordpress.org
Fri Feb 22 10:11:30 UTC 2019


#46309: Image upload failures when using Gutenberg gallery block.
--------------------------+-----------------------------
 Reporter:  talldanwp     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  5.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Transferring a Gutenberg issue from Github over to trac:
 https://github.com/WordPress/gutenberg/issues/8935

 Many users are experiencing a "The response is not a valid JSON response"
 error when uploading images, usually caused by a timeout on the server.

 In response to this, there was a change to the client side code in
 Gutenberg to upload images serially rather that in parallel. This improved
 things, but the error still seems to be happening for some users.

 In my own testing I had to use multiple huge images to reproduce an error.
 Errors happened much more frequently uploading directly to the gallery
 block than when using the standard media uploader—I'm not sure if there's
 a chance the REST endpoint might be somehow less optimised than the async-
 upload endpoint that the media library uses.

 Some details of the timeouts I received are here:
 https://github.com/WordPress/gutenberg/issues/8935#issuecomment-466306820

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46309>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list