Skip to content

Commit

Permalink
match behavior of backend for xmlrpc search disable (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin authored Nov 15, 2022
1 parent f63df18 commit 05f8988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/warehouse/vcl/main.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ sub vcl_error {
} else if (obj.status == 667) {
set obj.status = 200;
set obj.http.Content-Type = "text/xml; charset=UTF-8";
synthetic "<?xml version='1.0'?><methodResponse><fault><value><struct><member><name>faultCode</name><value><int>-32500</int></value></member><member><name>faultString</name><value><string>RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.</string></value></member></struct></value></fault></methodResponse>";
synthetic "<?xml version='1.0'?><methodResponse><fault><value><struct><member><name>faultCode</name><value><int>-32500</int></value></member><member><name>faultString</name><value><string>RuntimeError: PyPI no longer supports 'pip search' (or XML-RPC search). Please use https://${domain}/search (via a browser) instead. See https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods for more information.</string></value></member></struct></value></fault></methodResponse>";
return (deliver);
} else if (obj.status == 668) {
set obj.status = 406;
Expand Down

0 comments on commit 05f8988

Please sign in to comment.