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

TimeoutException::__construct(): Argument #1 ($output) must be of type array, null given #109

Closed
MatanYadaev opened this issue Mar 15, 2021 · 1 comment · Fixed by #111
Closed
Assignees

Comments

@MatanYadaev
Copy link

MatanYadaev commented Mar 15, 2021

  • Forge SDK Version: 3.4.0
  • Laravel Version: 8.32.1
  • PHP Version: 8.0.2
  • Database Driver & Version: MySQL 8.0

Description:

When running $site->deploySite() it throws this exception:

  TypeError 

  Laravel\Forge\Exceptions\TimeoutException::__construct(): Argument #1 ($output) must be of type array, null given, called in vendor/laravel/forge-sdk/src/MakesHttpRequests.php on line 138

  at vendor/laravel/forge-sdk/src/Exceptions/TimeoutException.php:22
     18▕      *
     19▕      * @param  array  $output
     20▕      * @return void
     21▕      */
  ➜  22▕     public function __construct(array $output)
     23▕     {
     24▕         parent::__construct('Script timed out while waiting for the process to complete.');
     25▕ 
     26▕         $this->output = $output;

Steps To Reproduce:

$forge = new Forge('api_key');
$server = $forge->servers()[0];
$site = $forge->sites($server->id)[0];
$site->deploySite();
@jbrooksuk
Copy link
Member

@MatanYadaev I'm looking into this now, but you probably do want to call deploySite(false) instead, which will make an asynchronous deployment.

Regardless, I'm looking into what's causing the exception.

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

Successfully merging a pull request may close this issue.

3 participants