Awaiting feedback IndexNow error 422 Keylocation is not allowed

TnT

Active member
Licensed customer
Affected version
v2.3.9
For a while now, I have been getting the following error messages:

Code:
ErrorException: IndexNow error: [422] Keylocation is not allowed. Please ensure the keylocation url belongs to the site mentioned in the host parameter

Stack Trace:

Code:
#0 src/XF.php(270): XF\Error->logError('IndexNow error:...', false)
#1 src/XF/IndexNow/Api.php(88): XF::logError('IndexNow error:...')
#2 src/XF/IndexNow/Api.php(34): XF\IndexNow\Api->request('/?key=REDACTED...', Array, 'IndexNow error:...')
#3 src/XF/Job/ContentIndexNow.php(84): XF\IndexNow\Api->index('/REDACTED...')
#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 src/XF/Cli/Command/RunJobs.php(58): XF\Job\Manager->runQueue(false, 8)
#8 src/vendor/symfony/console/Command/Command.php(298): XF\Cli\Command\RunJobs->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 src/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 src/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(XF\Cli\Command\RunJobs), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 src/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 src/XF/Cli/Runner.php(115): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 cmd.php(17): XF\Cli\Runner->run()
#14 {main}
 
Automated triage: Awaiting feedback

Thank you for reporting this issue. We couldn't find a fault in how the address of each page and the location of the IndexNow key file are built. Both come from your Board URL setting, so they should always be on the same site. We need a little more detail to look into this.

  • What is your Board URL setting exactly? In particular, is the forum installed in a subdirectory (for example example.com/forums), does it use www or not, or does the domain contain non-ASCII characters?
  • In the logged errors, do the submitted page addresses use exactly the same scheme, host and path prefix as your Board URL?
  • Do you have any add-ons that change links or domains (for example multiple domains or custom URL/route add-ons), or that extend the IndexNow integration?
  • Does this happen for every new or edited piece of content, or only sometimes (for example only when content is deleted, or after you changed your Board URL)? Does it still happen on the latest version?

This is an automated assessment. A member of staff may review and update it.
 
Back
Top Bottom