nano icon indicating copy to clipboard operation
nano copied to clipboard

Critical Error on default index.php script

Open drigolin opened this issue 1 year ago • 0 comments

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.

drigolin avatar Oct 21 '24 09:10 drigolin