Guzzle and Commerce errors

Hello,

Using Modx v2.8.8
Commerce: v1.6.0

I keep getting bandwidth-exceeding messages and I’m seeing the following errors in the server error log..

### SummaryStack trace:

#0 /home/www/public_html/core/components/guzzle7/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(158): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 /home/www/public_html/core/components/guzzle7/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(110): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 /home/www/public_html/core/components/guzzle7/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(47): GuzzleHttp\Handler\CurlFactory::finish(Object in /home/www/public_html/core/components/guzzle7/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 210
[21-Jun-2026 09:39:13 UTC] PHP Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 1000 milliseconds with 0 bytes received (see [libcurl - Error Codes](https://curl.haxx.se/libcurl/c/libcurl-errors.html) ) for https://ipinfo.io/anIPaddress/geo in /home/www/public_html/core/components/guzzle7/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:210

And the following in Modx error log:

[2026-06-21 10:27:01] (ERROR @ /home/www/public_html/core/components/commerce/src/Modules/Cart/AutoFillGeoIp.php : 157) [Commerce AutoFillGeoIp] Could not geolocate IP anIPaddress; Guzzle returned an exception for request https://ipinfo.io/anIPaddress/geo: Client error: `GET https://ipinfo.io/anIPaddress/geo` resulted in a `429 Too Many Requests` response:
{
“status”: 429,
“error”: {
“title”: “Rate limit hit”,
“message”: “Sign up at [ipinfo.io](http://ipinfo.io)”
}
}

Can anyone help resolve this please?

Thanks, J

ipinfo’s free rate limits are pretty generous, so if you’re also seeing bandwidth messages, you may be getting hit with a lot of traffic. I think the plain unauthorized access is 1000 IP lookups per day, so that’s 1000 different IPs being looked up to hit the rate limit.

(And yes Commerce caches the lookup per IP address so that’s a thousand unique ones in a day.)

If you sign up for a free plan at ipinfo and enter your token into the AutoFillGeoIp module, that will sort out the symptom you’re seeing, but if you’re not expecting thousands of unique visitors per day, you may want to look into what kind of traffic is hitting your server.

The AutoFillGeoIp module runs when the checkout or cart is accessed, or when an order is recalculated.

Thank you so much Mark.
I have added the token and will monitor the traffic. :+1: