Hi.
If scheme selected https the following error occurred. (even if uncheck the "Verify SSL certificate")
Error Message:
item failed due InvalidArgumentException
I checked api host server logs, it seems that it does not send http request to api host server.
The full setting is below:
Hostname: xxxxx.com
Port: 443
Path:/
Request Method:POST
Scheme:HTTPS
*uncheck Treat 4XX and 5XX responses as a failed invalidation.
I don't know where are the mistake.
| Comment | File | Size | Author |
|---|
Issue fork purge_purger_http-2892552
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mrsimonelliott commentedI confirm this issue.
Even with "Verify SSL" unchecked I get an error.
purger_http_2832d7e853: item failed due InvalidArgumentException, details (JSON): {"msg":"SSL CA bundle not found: [error]
0","uri":"https:\/\/xx.xx.xx.xx:443\/node\/226","method":"PURGE","guzzle_opt":{"http_errors":true,"connect_timeout":1,"timeout":1,"verify":"0"},"headers":{"user-agent":"purge_purger_http module for Drupal
8.","x-acquia-purge":"xxxxxxstg","accept-encoding":"gzip","host":"xxxxxxstg.prod.acquia-sites.com"}}
Alter config back to http on port 80 and all is good.
Comment #3
brooksbrown commentedI believe I've narrowed down this issue to the guzzle verify option being set as "0" rather than false. I'm attaching a patch that updates the schema for this (you will need to re-save the purger's configurations to test).
Comment #4
zerolab commentedComment #5
floretan commentedI applied the patch and updated the configuration, I can confirm that this works. To make this patch complete, we should probably update the configuration using an update hook.
Comment #6
vidorado commentedHi,
This is another solution less "pure", but it doesn't require updating the database schema.
Comment #8
vidorado commentedOops, a mistake in the patch
Comment #9
vidorado commentedAnother try to get the patch passing tests
Comment #10
vidorado commentedComment #11
iaugur commented#9 patch works for me and corrects the issue - Thanks
Comment #12
jonhattanBoth #3 and #9 works.
Comment #13
cesarmiquel commentedI saw this same issue and #9 fixes it. Looks good to me!
Comment #14
ezra commented#9 worked for me as well.
Comment #17
dieterholvoet commentedI went for the cleanest solution, changing the config schema, and I added an update hook to update existing values.