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:
 
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:
Back
Top Bottom