[wp-meta] [Making WordPress.org] #7732: Recommended `query_plugins` request fails with many installed plugins

Making WordPress.org noreply at wordpress.org
Wed Jul 31 14:49:58 UTC 2024


#7732: Recommended `query_plugins` request fails with many installed plugins
--------------------------+--------------------
 Reporter:  desrosj       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:
Component:  API           |   Keywords:
--------------------------+--------------------
 Today I encountered a `414 Request-URI Too Long` error on the recommended
 plugins page on a site with many installed plugins.

 {{{
 https://api.wordpress.org/plugins/info/1.2/
 ?action=query_plugins
 &request%5Bpage%5D=1
 &request%5Bper_page%5D=36
 &request%5Blocale%5D=en_US
 &request%5Bbrowse%5D=recommended
 &request%5Binstalled_plugins%5D%5B1%5D=add-from-server
 &request%5Binstalled_plugins%5D%5B2%5D=admin-color-schemes
 &request%5Binstalled_plugins%5D%5B3%5D=advanced-custom-fields
 &request%5Binstalled_plugins%5D%5B4%5D=tinymce-advanced
 ...
 &request%5Binstalled_plugins%5D%5B334%5D=wp-smushit
 &request%5Binstalled_plugins%5D%5B335%5D=woocommerce-payments
 &request%5Binstalled_plugins%5D%5B336%5D=yoast-seo-wordpress-premium
 &request%5Bwp_version%5D=6.7
 }}}

 This is a test site that I use for testing certain things (like auto-
 updates with many installed) and I recognize this is a large number of
 plugins. But it's not clear what the actual character limit is on the
 request.

 If the limit is already at a reasonable level, perhaps the API could be
 updated to also accept a comma separated list of plugin names instead of
 an array to avoid having to repeat the entire
 `request[installed_plugins][##]=` string?

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/7732>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list