Known Bots

Known Bots 6.1.1

No permission to download
im getting error on send user agents
Code:
GuzzleHttp\Exception\InvalidArgumentException: json_decode error: Syntax error in src/vendor/guzzlehttp/guzzle/src/Utils.php at line 277
GuzzleHttp\Utils::jsonDecode() in src/vendor/guzzlehttp/guzzle/src/functions.php at line 149
GuzzleHttp\json_decode() in src/addons/Hampel/KnownBots/Api/KnownBots.php at line 254
Hampel\KnownBots\Api\KnownBots->sendUserAgents() in src/addons/Hampel/KnownBots/SubContainer/Api.php at line 109
Hampel\KnownBots\SubContainer\Api->sendUserAgents() in src/addons/Hampel/KnownBots/Service/UserAgentSender.php at line 47
Hampel\KnownBots\Service\UserAgentSender->sendUserAgents() in src/addons/Hampel/KnownBots/XF/Admin/Controller/Tools.php at line 236
Hampel\KnownBots\XF\Admin\Controller\Tools->sendApi() in src/addons/Hampel/KnownBots/XF/Admin/Controller/Tools.php at line 160
Hampel\KnownBots\XF\Admin\Controller\Tools->actionHampelKnownBotsSend() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2824
XF\App->run() in src/XF.php at line 806
XF::runApp() in admin.php at line 15
and on api token update
Code:
GuzzleHttp\Exception\InvalidArgumentException: json_decode error: Syntax error in src/vendor/guzzlehttp/guzzle/src/Utils.php at line 277
GuzzleHttp\Utils::jsonDecode() in src/vendor/guzzlehttp/guzzle/src/functions.php at line 149
GuzzleHttp\json_decode() in src/addons/Hampel/KnownBots/Api/KnownBots.php at line 130
Hampel\KnownBots\Api\KnownBots->validate() in src/addons/Hampel/KnownBots/SubContainer/Api.php at line 99
Hampel\KnownBots\SubContainer\Api->validate() in src/addons/Hampel/KnownBots/XF/Admin/Controller/Option.php at line 60
Hampel\KnownBots\XF\Admin\Controller\Option->actionKnownbotsApiConfigure() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2824
XF\App->run() in src/XF.php at line 806
XF::runApp() in admin.php at line 15
 
6.1.0/xf 2.3.7/php 8.4
Reinstalling did not help either

Okay - can you please run the following command from your forum root:

php cmd.php known-bots:email knownbots@hampel.io

This will send me an email with a list of your user agents as an attachment. You can run the same command without the email address on the end to send a copy to the default email address for your forum if you want to see what is being sent.

There's possibly some strange encoding in one of the user agent strings that json_encode is choking on. I've tried to compensate for bad strings that won't get encoded correctly, but it's possible there's something I've missed.
 
Anyone else get an increase of Baidu and Sogou spider bots on their site? They're in my robots.txt file and they used to respect it as I hardly ever saw one. But since about a week or so they are visiting and crawling.
 
6.1.0/xf 2.3.7/php 8.4
Reinstalling did not help either

I received your data file - but was unable to reproduce any errors.

Does the error occur every time
im getting error on send user agents
Code:
GuzzleHttp\Exception\InvalidArgumentException: json_decode error: Syntax error in src/vendor/guzzlehttp/guzzle/src/Utils.php at line 277
GuzzleHttp\Utils::jsonDecode() in src/vendor/guzzlehttp/guzzle/src/functions.php at line 149
GuzzleHttp\json_decode() in src/addons/Hampel/KnownBots/Api/KnownBots.php at line 254
Hampel\KnownBots\Api\KnownBots->sendUserAgents() in src/addons/Hampel/KnownBots/SubContainer/Api.php at line 109
Hampel\KnownBots\SubContainer\Api->sendUserAgents() in src/addons/Hampel/KnownBots/Service/UserAgentSender.php at line 47
Hampel\KnownBots\Service\UserAgentSender->sendUserAgents() in src/addons/Hampel/KnownBots/XF/Admin/Controller/Tools.php at line 236
Hampel\KnownBots\XF\Admin\Controller\Tools->sendApi() in src/addons/Hampel/KnownBots/XF/Admin/Controller/Tools.php at line 160
Hampel\KnownBots\XF\Admin\Controller\Tools->actionHampelKnownBotsSend() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2824
XF\App->run() in src/XF.php at line 806
XF::runApp() in admin.php at line 15
and on api token update
Code:
GuzzleHttp\Exception\InvalidArgumentException: json_decode error: Syntax error in src/vendor/guzzlehttp/guzzle/src/Utils.php at line 277
GuzzleHttp\Utils::jsonDecode() in src/vendor/guzzlehttp/guzzle/src/functions.php at line 149
GuzzleHttp\json_decode() in src/addons/Hampel/KnownBots/Api/KnownBots.php at line 130
Hampel\KnownBots\Api\KnownBots->validate() in src/addons/Hampel/KnownBots/SubContainer/Api.php at line 99
Hampel\KnownBots\SubContainer\Api->validate() in src/addons/Hampel/KnownBots/XF/Admin/Controller/Option.php at line 60
Hampel\KnownBots\XF\Admin\Controller\Option->actionKnownbotsApiConfigure() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2824
XF\App->run() in src/XF.php at line 806
XF::runApp() in admin.php at line 15

Please upgrade to addon v6.1.1 - this will fix the json_decode error
 
Anyone else get an increase of Baidu and Sogou spider bots on their site? They're in my robots.txt file and they used to respect it as I hardly ever saw one. But since about a week or so they are visiting and crawling.

Are you sure it's actually those bots and not other malicious bots just pretending to be them? I see that a lot with bots pretending to be GoogleBot and similar.
 
Back
Top Bottom