Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After configuring a new HTTP purger (bundled or not), and pointing it at Varnish running on 127.0.0.1
, port 81
, I ran drush p-queue-work
, and got a bunch of the following errors:
GuzzleHttp\Exception\ClientException thrown by 596e2dc568, invalidation marked as failed. URI: [error]
http://127.0.0.1/# METHOD: BAN# HEADERS: ["user-agent"]=>, S(38) "purge_purger_http module for Drupal 8.",
["x-drupal-cache-tags"]=>, S(23) "config:system.menu.main", }#mOPT: ["http_errors"]=>, B(true),
["connect_timeout"]=>, F(1), ["timeout"]=>, F(1), }#MSG: Client error: 405#
Looking through them, I noticed my port wasn't being added to the URI passed into Guzzle. I'll attach a patch that makes sure the port is added (in addition to schema, host, and path).
Comment | File | Size | Author |
---|---|---|---|
#2 | guzzle_clientexception-2691913-2.patch | 617 bytes | geerlingguy |
Comments
Comment #2
geerlingguy CreditAttribution: geerlingguy as a volunteer and at Acquia commentedPatch attached.
Comment #3
nielsvm CreditAttribution: nielsvm as a volunteer and at Acquia commentedThank you!
This will end up as
8.x-1.0-beta2
later today, probably <2 hours from this message.