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

Error after invalid GitHub API response #115

Closed
oqq opened this issue Oct 10, 2017 · 1 comment
Closed

Error after invalid GitHub API response #115

oqq opened this issue Oct 10, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@oqq
Copy link

oqq commented Oct 10, 2017

I have got an error after execution of:

$ phive install phpunit/phpunit
Phive 0.8.1 - Copyright (C) 2015-2017 by Arne Blankerts, Sebastian Heuer and Contributors
Downloading https://api.github.com/repos/phpunit/phpunit/releases
Downloading https://api.github.com/repos/phpunit/phpunit/releases
Downloading https://api.github.com/repos/phpunit/phpunit/releases
Downloading https://api.github.com/repos/phpunit/phpunit/releases
Downloading https://api.github.com/repos/phpunit/phpunit/releases
[ERROR]   An error occurred while processing your request:

          Call to a member function getHttpCode() on null
          
          #0 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/shared/download/FileDownloader.php(41)
          #1 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/services/resolver/GithubAliasResolver.php(50): PharIo\Phive\FileDownloader->download()
          #2 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/services/resolver/GithubAliasResolver.php(33): PharIo\Phive\GithubAliasResolver->localResolve()
          #3 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/services/resolver/AbstractRequestedPharResolver.php(29): PharIo\Phive\GithubAliasResolver->resolve()
          #4 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/services/resolver/LocalAliasResolver.php(37): PharIo\Phive\AbstractRequestedPharResolver->tryNext()
          #5 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/services/resolver/RequestedPharResolverService.php(35): PharIo\Phive\LocalAliasResolver->resolve()
          #6 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/commands/install/InstallCommand.php(68): PharIo\Phive\RequestedPharResolverService->resolve()
          #7 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/commands/install/InstallCommand.php(54): PharIo\Phive\InstallCommand->resolveToRelease()
          #8 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/commands/install/InstallCommand.php(44): PharIo\Phive\InstallCommand->installRequestedPhar()
          #9 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/shared/cli/Runner.php(211): PharIo\Phive\InstallCommand->execute()
          #10 har:///usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar/src/shared/cli/Runner.php(70): PharIo\Phive\Cli\Runner->execute()
          #11 usr/local/Cellar/phive/0.8.1/libexec/phive-0.8.1.phar(293): PharIo\Phive\Cli\Runner->run()
          #12 {main}

          Environment: PHP 7.1.8
          Phive Version: 0.8.1

          This should not have happened and is most likely a bug.
          Please report it at https://github.com/phar-io/phive/issues, make sure you include
          the full output of this error message. Thank you!

Response from https://api.github.com/repos/phpunit/phpunit/releases is 404 with content:

{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3"
}

Thanks!

@sebastianheuer sebastianheuer self-assigned this Oct 10, 2017
@sebastianheuer sebastianheuer modified the milestones: 0.8.1, 0.8.2 Oct 10, 2017
@sebastianheuer
Copy link
Member

Thanks for submitting the issue! We have fixed it in version 0.8.2.

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

No branches or pull requests

2 participants