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

Fails to install / update #40

Closed
hettiger opened this issue Mar 28, 2024 · 3 comments · Fixed by #41
Closed

Fails to install / update #40

hettiger opened this issue Mar 28, 2024 · 3 comments · Fixed by #41

Comments

@hettiger
Copy link

> @php artisan graphiql:download-assets

   ErrorException

  file_get_contents(https://raw.githubusercontent.com/graphql/graphql.github.io/source/static/favicon.ico): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

  at vendor/mll-lab/laravel-graphiql/src/DownloadAssetsCommand.php:56
     52▕         if (! is_dir($directory)) {
     53▕             mkdir($directory, 0777, true);
     54▕         }
     55▕
  ➜  56▕         $contents = file_get_contents("https:{$cdnPath}");
     57▕         if ($contents === false) {
     58▕             $error = error_get_last();
     59▕             throw new \ErrorException($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
     60▕         }

      +14 vendor frames

  15  artisan:35
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

Script @php artisan graphiql:download-assets handling the publish-vendor-assets event returned with error code 1
Script @publish-vendor-assets was called via post-update-cmd
@mwangaben
Copy link

mwangaben commented Mar 30, 2024

@hettiger i have the same issue when running artisan command to save assets locally

php artisan graphiql:download-assets

@hschaefler
Copy link
Contributor

Happened to us as well today. I created a PR with the updated location of the favicon.ico

@spawnia
Copy link
Member

spawnia commented Apr 3, 2024

Fixed with https://github.com/mll-lab/laravel-graphiql/releases/tag/v3.2.1

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

Successfully merging a pull request may close this issue.

4 participants