Closed TravisScottex closed 9 months ago
A quick fix might be to upgrade to a more stable version, but you would lose the async https://github.com/davtur19/TuriBot#stable-1
Could you try running a composer update
to make sure you have the latest vesion of amphp?
In the text you wrote is missing the error, you only sent the stacktrace, are you sure it doesn't say anything else?
This issue is missing the actual error message
I think with "composer update" I fixed it, until now it hasn't crashed yet. I can't see the whole error unfortunately because the code is executed in a screen
You can scroll in screen: https://stackoverflow.com/questions/18489216/how-to-scroll-up-and-down-in-sliced-screen-terminal
PHP Fatal error: Uncaught Amp\Http\Client\SocketException: Receiving the response headers for 'https://api.telegram.org/bot/sendVideo' failed, because the socket to 'api.telegram.org' @ '???' closed early with 0 bytes received within 9.906 seconds in /var/www/./TelegramBot/Bot2/vendor/amphp/http-client/src/Connection/Http1Connection.php:462
It seems to be a problem related to Telegram, if you still have the problem reopen the issue
after a few hours the bot gives me these errors and crashes, I think it's because it receives too many requests, there is a way to fix it because it's really boring to restart it every time