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

Critical Error on default index.php script #72

Open
drigolin opened this issue Oct 21, 2024 · 0 comments
Open

Critical Error on default index.php script #72

drigolin opened this issue Oct 21, 2024 · 0 comments

Comments

@drigolin
Copy link

I have tested the index.php script available into nano examples but at any request i receive an unhandled exception

[INFO] App started
[INFO] Worker#0 started.
[INFO] HTTP Server listening at 0.0.0.0:9501
[INFO] Process[nano-process.0] start.
[INFO] Process[crontab-dispatcher.0] start.
[INFO] nano-process Processing...
[INFO] nano-process Processing...
[INFO] execute every second!
[INFO] Crontab task [nano-crontab] executed successfully at 2024-10-21 09:58:00.
[INFO] nano-process Processing...
[INFO] execute every second!
[INFO] Crontab task [nano-crontab] executed successfully at 2024-10-21 09:58:01.
[CRITICAL] Hyperf\Di\Exception\InvalidArgumentException: The name parameter must be of type string, integer given in /home/dario/Projects/swoole/hyperf-nano/vendor/hyperf/di/src/Container.php:113
Stack trace:
#0 /home/dario/Projects/swoole/hyperf-nano/vendor/hyperf/exception-handler/src/ExceptionHandlerDispatcher.php(37): Hyperf\Di\Container->has()
#1 /home/dario/Projects/swoole/hyperf-nano/vendor/hyperf/http-server/src/Server.php(116): Hyperf\ExceptionHandler\ExceptionHandlerDispatcher->dispatch()
#2 /home/dario/Projects/swoole/hyperf-nano/vendor/hyperf/support/src/SafeCaller.php(61): Hyperf\HttpServer\Server->Hyperf\HttpServer{closure}()
#3 /home/dario/Projects/swoole/hyperf-nano/vendor/hyperf/http-server/src/Server.php(115): Hyperf\Support\SafeCaller->call()
#4 [internal function]: Hyperf\HttpServer\Server->onRequest()
#5 {main}
[INFO] nano-process Processing...
[INFO] execute every second!
[INFO] Crontab task [nano-crontab] executed successfully at 2024-10-21 09:58:02.
[INFO] nano-process Processing...
[INFO] execute every second!
[INFO] Crontab task [nano-crontab] executed successfully at 2024-10-21 09:58:03.
[INFO] nano-process Processing...
[INFO] execute every second!
[INFO] Crontab task [nano-crontab] executed successfully at 2024-10-21 09:58:04.

Request is executed but this "CRITICAL error" is logged all the times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant