fastlane-old / sigh

Because you would rather spend your time building stuff than fighting provisioning
https://fastlane.tools
959 stars 87 forks source link

Couldn't download certificate #257

Closed gran33 closed 8 years ago

gran33 commented 8 years ago

While using sigh getting this error:

/Users/rang/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.19.3/lib/spaceship/portal/portal_client.rb:318:in `download_certificate': Couldn't download certificate, got this instead:  (Spaceship::Client::UnexpectedResponse)
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.19.3/lib/spaceship/portal/certificate.rb:298:in `download_raw'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/lib/sigh/runner.rb:87:in `block (2 levels) in fetch_profiles'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/lib/sigh/runner.rb:85:in `each'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/lib/sigh/runner.rb:85:in `block in fetch_profiles'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/lib/sigh/runner.rb:82:in `each'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/lib/sigh/runner.rb:82:in `find_all'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/lib/sigh/runner.rb:82:in `fetch_profiles'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/lib/sigh/runner.rb:20:in `run'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/lib/sigh/manager.rb:7:in `start'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/bin/sigh:35:in `block (2 levels) in run'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/bin/sigh:90:in `run'
    from /Users/rang/.rvm/gems/ruby-2.2.1@global/gems/sigh-1.3.0/bin/sigh:108:in `<top (required)>'
    from /Users/rang/.rvm/rubies/ruby-2.2.1/bin/sigh:23:in `load'
    from /Users/rang/.rvm/rubies/ruby-2.2.1/bin/sigh:23:in `<main>'
    from /Users/rang/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
    from /Users/rang/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
gustavogervasio commented 8 years ago

I have the same problem:

[!] Couldn't download certificate, got this instead: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> (Spaceship::Client::UnexpectedResponse)

KrauseFx commented 8 years ago

Sorry for not coming back earlier. Do you still experience this issue with the latest version of spaceship?

cuongta commented 8 years ago

I have a similar problem when I try to run sigh:

/Library/Ruby/Gems/2.0.0/gems/spaceship-0.21.1/lib/spaceship/portal/portal_client.rb:311:in `download_certificate': [!] Couldn't download certificate, got this instead: HTTP 405 Method Not Allowed (Spaceship::Client::UnexpectedResponse)

Thanks

KrauseFx commented 8 years ago

Sorry about this, we already pushed a new version of spaceship: https://github.com/fastlane/spaceship/releases/tag/0.22.0. Please update using sudo gem update spaceship and let us know if that solves the issue :rocket:

mfurtak commented 8 years ago

sigh 1.4.0 has been released with this fix as well! :tada:

cuongta commented 8 years ago

sweet, thanks for the quick response! it works now.

asfalcone commented 8 years ago

@gran33 are you still experiencing the original problem?

fastlane-bot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/1761. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: