Skip to content

Call to a member function handle on null (Swoole) #1053

@AbolfazlSalehi-Work

Description

@AbolfazlSalehi-Work

Octane Version

2.12.1

Laravel Version

12.26.4

PHP Version

8.4.0

What server type are you using?

Swoole

Server Version

6.0.2

Database Driver & Version

No response

Description

hi
every time i change my code for a moment server crashes and i get this Error in the octane log
thern after a few seconds it works normally
Fatal error: Uncaught Error: Call to a member function handle() on null in /var/www/vendor/laravel/octane/bin/swoole-server:122 Stack trace: 2025-09-01 09:41:25.086 | #0 [internal function]: {closure:/var/www/vendor/laravel/octane/bin/swoole-server:111}(Object(Swoole\Http\Request), Object(Swoole\Http\Response)) 2025-09-01 09:41:25.086 | #1 {main} 2025-09-01 09:41:25.086 | thrown in /var/www/vendor/laravel/octane/bin/swoole-server on line 122 2025-09-01 09:41:26.684 | [2025-09-01 06:11:26] local.ERROR: Uncaught Error: Call to a member function handle() on null in /var/www/vendor/laravel/octane/bin/swoole-server:122 2025-09-01 09:41:26.684 | Stack trace: 2025-09-01 09:41:26.684 | #0 [internal function]: {closure:/var/www/vendor/laravel/octane/bin/swoole-server:111}(Object(Swoole\Http\Request), Object(Swoole\Http\Response)) 2025-09-01 09:41:26.684 | #1 {main} 2025-09-01 09:41:26.684 | thrown {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Uncaught Error: Call to a member function handle() on null in /var/www/vendor/laravel/octane/bin/swoole-server:122 2025-09-01 09:41:26.684 | #0 [internal function]: {closure:/var/www/vendor/laravel/octane/bin/swoole-server:111}(Object(Swoole\\Http\\Request), Object(Swoole\\Http\\Response)) 2025-09-01 09:41:26.684 | thrown at /var/www/vendor/laravel/octane/bin/swoole-server:122) 2025-09-01 09:41:26.684 | [stacktrace] 2025-09-01 09:41:26.684 | #0 {main} 2025-09-01 09:41:26.684 | "}

Steps To Reproduce

change code (anywhare)
then after try using it(Api requests..)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions