my proxytok instance broken, can you help? here is logs: 172.18.0.16 - blessed…
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
my proxytok instance broken, can you help? here is logs: 172.18.0.16 - blessed [24/Mar/2025:02:56:51 +0000] "GET /@ladbible/video/7478331670324710678 HTTP/1.1" 500 5 "https://www.google.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0" "31.43.232.145, 31.43.232.145" 0.747 0.748 . - 172.18.0.16 - blessed [24/Mar/2025:02:56:51 +0000] "GET /favicon.ico HTTP/1.1" 200 3540 "https://ttok.theodrim.com/@ladbible/video/7478331670324710678" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0" "31.43.232.145, 31.43.232.145" 0.000 - . - NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: TikScraper\Helpers\Misc::getDoc(): Argument #1 (body) must be of type string, null given, called in /var/www/html/vendor/pablouser1/tikscraper/src/Models/Response.php on line 30 and defined in /var/www/html/vendor/pablouser1/tikscraper/src/Helpers/Misc.php:10 Stack trace: #0 /var/www/html/vendor/pablouser1/tikscraper/src/Models/Response.php(30): TikScraper\Helpers\Misc::getDoc() #1 /var/www/html/vendor/pablouser1/tikscraper/src/Sender.php(82): TikScraper\Models\Response->__construct() #2 /var/www/html/vendor/pablouser1/tikscraper/src/Items/Video.php(30): TikScraper\Sender->sendHTML() #3 /var/www/html/vendor/pablouser1/tikscraper/src/Items/Video.php(15): TikScraper\Items\Video->info() #4 /var/www/html/vendor/pablouser1/tikscraper/src/Api.php(59): TikScraper\Items\Video->__construct() #5 /var/www/html/app/Controllers/UserController.php(29): TikScraper\Api->video() #6 [internal function]: App\Controllers\UserController::video() #7 /var/www/html/vend... 2025/03/24 02:56:51 [error] 10#10: *22210 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: TikScraper\Helpers\Misc::getDoc(): Argument #1 (body) must be of type string, null given, called in /var/www/html/vendor/pablouser1/tikscraper/src/Models/Response.php on line 30 and defined in /var/www/html/vendor/pablouser1/tikscraper/src/Helpers/Misc.php:10 Stack trace: #0 /var/www/html/vendor/pablouser1/tikscraper/src/Models/Response.php(30): TikScraper\Helpers\Misc::getDoc() #1 /var/www/html/vendor/pablouser1/tikscraper/src/Sender.php(82): TikScraper\Models\Response->__construct() #2 /var/www/html/vendor/pablouser1/tikscraper/src/Items/Video.php(30): TikScraper\Sender->sendHTML() #3 /var/www/html/vendor/pablouser1/tikscraper/src/Items/Video.php(15): TikScraper\Items\Video->info() #4 /var/www/html/vendor/pablouser1/tikscraper/src/Api.php(59): TikScraper\Items\Video->__construct() #5 /var/www/html/app/Controllers/UserController.php(29): TikScraper\Api->video() #6 [internal function]: App\Controllers\UserController::video() #7 /var/www/html/vend" while reading response header from upstream, client: 172.18.0.16, server: _, request: "GET /@ladbible/video/7478331670324710678 HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.sock:", host: "ttok.theodrim.com", referrer: "https://www.google.com/"
which source files you want to see to fix the issue?
The error indicates a PHP fatal error in the TikScraper library when processing a TikTok video request. The core issue is that the getDoc() method receives null instead of a string, suggesting the response body from TikTok is empty or malformed. Here's how to troubleshoot:
TypeError in TikScraper\Helpers\Misc::getDoc()null, likely due to:
curl to test connectivity directly[1][3].apify/tiktok-scraper[2][6].https://www.tiktok.com/@ladbible/video/7478331670324710678) and check if the HTML contains expected elements like <video> tags.429 Too Many Requests errors[4][7][12].php-curl) are installed and functional.If the library is outdated, update it via Composer:
composer update pablouser1/tikscraper
If the issue persists, consider using a different scraper like apify/tiktok-scraper[2][6], which handles TikTok’s dynamic content more robustly.
Let me know if you need help with specific configuration files (e.g., php.ini, proxy settings).