Fixed IndexNow error: [500] An unexpected error occurred

ivp

Active member
Affected version
2.3.5
Sporadically seeing the following error:

Code:
ErrorException: IndexNow error: [500] An unexpected error occurred. Please try again later. src/XF/Error.php:81

Stack trace
#0 src/XF.php(266): XF\Error->logError('IndexNow error:...', false)
#1 src/XF/IndexNow/Api.php(86): XF::logError('IndexNow error:...')
#2 src/XF/IndexNow/Api.php(34): XF\IndexNow\Api->request('/?key=...', Array, 'IndexNow error:...')
#3 src/XF/Job/ContentIndexNow.php(84): XF\IndexNow\Api->index('https://forum...')
#4 src/XF/Job/Manager.php(275): XF\Job\ContentIndexNow->run(8)
#5 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#6 src/XF/Job/Manager.php(89): XF\Job\Manager->runJobEntry(Array, 8)
#7 job.php(46): XF\Job\Manager->runQueue(false, 8)
#8 {main}

Request state
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(64) "https://forum.../threads/abc.123/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
I am not the only one:
 
Now seeing hundreds of:
Code:
ErrorException: IndexNow error: [429] We're sorry, but you have sent too many requests to us recently. src/XF/Error.php:81
 
did you move around a lot of threads using something like batch update threads?

you can logically disable indexnow option if you really do not care about what it offers!
 
Might be part of this.

 
In addition to the atomic notifications, IndexNow protocol allows for batched updates, which can be helpful in reducing the number of HTTP requests to IndexNow servers. Another possibility is to partition notifications and send them to different IndexNow-supporting search engines, which they internally synchronize among each other within a few seconds.
 
Last edited:
These are usually just intermittent issues with the IndexNow service. It may be reasonable for us to make the requests retry on failure to handle that a little more gracefully, but it's not typically indicative of a major problem.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.7).

Change log:
Avoid logging errors when IndexNow is having intermittent issues
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom