Calling URL with the API log a PHP warning
scandella opened this issue · comments
Support Request
Hi,
Calling Blitz actions via URL with the API seems to trigger a PHP warning.
Althought, the actions are working and the server response is 200.
I was wondering what this error is referring to.
It says :
PHP Warning: Could not load the system's DNS configuration, using synchronous, blocking fallback in /home/www/panglagare.com/htdocs/dev/vendor/amphp/dns/lib/Rfc1035StubResolver.php on line 258
Best,
Plugin Version
4.12.1
What URL are you calling, exactly? And where is this PHP warning appearing?
I'm hitting /actions/blitz/cache/refresh-urls?
The warning appears in /storage/logs/phperrors.log
Thanks. Please change your API key, if that is a live key you just posted! I was interested in the controller action part of the URI only.
The warning looks ok to me. It is saying that the cache generator cannot access the system’s DNS configuration and is falling back on using synchronous requests. what kind of web hosting are you using? I’ve never come across this in a VPS or managed hosting scenario.
I'm using a bare metal server from Scaleway with Debian 5. Nothing fancy…
Does running the same command via the console result in the same error?
craft blitz/cache/refresh-urls https://example.com
No warning are logged when the command is running via the console!
Well I can’t explain that one. Does the warning appear when using the Blitz cache utility too?
Closing due to inactivity.