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

Application crashes if an app of type string was not provided #111

Closed
samuelrac opened this issue Mar 22, 2024 · 2 comments
Closed

Application crashes if an app of type string was not provided #111

samuelrac opened this issue Mar 22, 2024 · 2 comments

Comments

@samuelrac
Copy link

Reverb Version

1.0.0-beta4

Laravel Version

11

PHP Version

8.2

Description

Sometimes I'm getting this error:

  Laravel\Reverb\ConfigApplicationProvider::findById(): Argument #1 ($id) must be of type string, null given, called in /Users/samuelrac/stack/whatscompany/grp_ipchat/ipchat-websocket-server/vendor/laravel/reverb/src/ConfigApplicationProvider.php on line 27

  at vendor/laravel/reverb/src/ConfigApplicationProvider.php:36
     32▕      * Find an application instance by ID.
     33▕      *
     34▕      * @throws \Laravel\Reverb\Exceptions\InvalidApplication
     35▕      */
  ➜  36▕     public function findById(string $id): Application
     37▕     {
     38▕         return $this->find('app_id', $id);
     39▕     }
     40▕ 

      +1 vendor frames 

  2   [internal]:0
      Laravel\Reverb\ConfigApplicationProvider::Laravel\Reverb\{closure}()
      +18 vendor frames 

  21  [internal]:0
      React\EventLoop\ExtEvLoop::React\EventLoop\{closure}()

After that, the application needs to be started again

Steps To Reproduce

The problem is intermittent, so I don't know what is causing this problem.

@driesvints
Copy link
Member

Seems to be the same as #90. Did you add the env variables like the OP of that issue said?

@driesvints
Copy link
Member

Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel to open up a new issue if you're still experiencing this.

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

No branches or pull requests

2 participants