Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maximum execution time error for react event loop #103

Open
ehsan9ir opened this issue May 27, 2019 · 2 comments
Open

maximum execution time error for react event loop #103

ehsan9ir opened this issue May 27, 2019 · 2 comments
Labels
question Marks an PR or issue to be a question rather than code modification

Comments

@ehsan9ir
Copy link

Hi, I created a bot using your SDK and but $loop->run(); not working and cod stop and after 60 second show this error

pls help for solve problem

Symfony\Component\Debug\Exception\FatalErrorException: Maximum execution time of 10 seconds exceeded in file F:\Programing\laravel\allMessangerBot\vendor\react\event-loop\src\StreamSelectLoop.php on line 274
Stack trace:

  1. Symfony\Component\Debug\Exception\FatalErrorException->() F:\Programing\laravel\allMessangerBot\vendor\react\event-loop\src\StreamSelectLoop.php:274
@unreal4u unreal4u added the question Marks an PR or issue to be a question rather than code modification label May 27, 2019
@unreal4u
Copy link
Owner

Hi!

This means that PHP is limited to run only for 10 seconds. This can be solved by overwriting the max_execution_time variable: https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time

You can also ask your hoster whether he wants to increase this time limit, these kind of limitations are generally imposed to prevent heavy or long-running scripts from running.

@ehsan9ir
Copy link
Author

@unreal4u
I do not think it's up to this time because I've increased it and made no difference, and again it shows off the error !!

It's funny to use sdk for messaging that is very similar to a telegram, and it works, but it works for a broken telegram.

The line to the line that I've erased and the error occurs when the code below is to be executed
$ loop-> run ();

If I delete the code above, there will be no errors and codes will run

I also used other sdks. They work fine, but I want to use your sdk because I'm comfortable with it and it's great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Marks an PR or issue to be a question rather than code modification
Projects
None yet
Development

No branches or pull requests

2 participants