XF 2.2 Google Sitemap Submission Error


Well-known member
I am getting the following error on two separate forums (both on XF 2.2.13) at two totally different URLs.

Anyone else seeing same?

Anything obvious as to why?

Server error log
GuzzleHttp\Exception\ClientException: Error submitting sitemap to https://www.google.com/webmasters/tools/ping?sitemap=https%3A%2F%2F126board.com%2Fsitemap.php: Client error: `GET https://www.google.com/webmasters/tools/ping?sitemap=https%3A%2F%2F126board.com%2Fsitemap.php` resulted in a `429 Too Many Requests` response:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="content-type" content="te (truncated...)
[*]Generated by: Unknown account
[*]May 19, 2023 at 1:37 AM
[HEADING=2]Stack trace[/HEADING]
           #0 src/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 src/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 src/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 src/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 src/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Promise\TaskQueue->run(true)
#5 src/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 src/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending()
#7 src/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 src/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(182): GuzzleHttp\Promise\Promise->wait()
#10 src/vendor/guzzlehttp/guzzle/src/Client.php(95): GuzzleHttp\Client->request('get', 'https://www.goo...', Array)
#11 src/XF/Sitemap/Builder.php(515): GuzzleHttp\Client->__call('get', Array)
#12 src/XF/Sitemap/Builder.php(432): XF\Sitemap\Builder->sendPing()
#13 src/XF/Sitemap/Builder.php(73): XF\Sitemap\Builder->completeBuild()
#14 src/XF/Job/Sitemap.php(27): XF\Sitemap\Builder->build(7.52904)
#15 src/XF/Job/Manager.php(260): XF\Job\Sitemap->run(8)
#16 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#17 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#18 job.php(43): XF\Job\Manager->runQueue(false, 8)
#19 {main}
[HEADING=2]Request state[/HEADING]
           array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(67) "https://126board.com/attachments/560sec_mercenth_07-2015-pdf.37709/"
  ["_GET"] => array(0) {
  ["_POST"] => array(0) {
We've also been getting this for several weeks now. Don't know why, I thought 429 generally meant a rate limit is being enforced. Is XF configured to send it too frequently? There's no information in the error code as to when it is OK to send new requests. We haven't changed anything from the defaults so honestly not sure why this is suddenly a problem.
The cron runs Monday, Wednesday, Friday.

If you want to reduce the frequency, you will have to disable the default cron task and create a new one.

Google doesn't need a sitemap - it's capable of crawling an entire site without one.
I know at one time some people asked how to "increase" the number of submissions... curios if the ones having this issue were some that did that, as I've not had any errors and I'm using the default submission CRON.
I know at one time some people asked how to "increase" the number of submissions... curios if the ones having this issue were some that did that, as I've not had any errors and I'm using the default submission CRON.
At least for me, haven’t touched anything relating to this for years. Except modifying the Bing submission URL, but that doesn’t affect Google.

@Brogan said that Google can crawl sites on its own, so doesn’t actually need a site map submission. I believe him, so I left the cron alone and just deleted the Google submission URL.

No errors since.
Top Bottom