Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Uncommon error with downloading the certificate #13

Closed
alistra opened this issue Dec 1, 2014 · 6 comments
Closed

Uncommon error with downloading the certificate #13

alistra opened this issue Dec 1, 2014 · 6 comments

Comments

@alistra
Copy link

alistra commented Dec 1, 2014

I was using PEM to generate 60 app pem files. This happened to me 11 times:

https://developer.apple.com/account/ios/certificate/certificateContentDownload.action?displayId=7H6QYPGXT4&type=3BQKVH9I2X error: redirection forbidden: https://developer.apple.com/account/ios/certificate/certificateContentDownload.action?displayId=7H6QYPGXT4&type=3BQKVH9I2X -> http://developer.apple.com/account/selectTeam.action. Use --trace to view backtrace

Attaching error screenshot:

error1417439209

@alistra alistra changed the title Rare error with downloading the certificate Uncommon error with downloading the certificate Dec 1, 2014
@alistra
Copy link
Author

alistra commented Dec 1, 2014

Looks like there is a timing issue, not a logic issue. The screenshot looks alright, so maybe the url isn't ready yet or something.

@alistra
Copy link
Author

alistra commented Dec 1, 2014

Reproduced it with --trace

INFO [2014-12-01 18:05:02.76]: Going to download the latest profile
https://developer.apple.com/account/ios/certificate/certificateContentDownload.action?displayId=2REXXTEJ78&type=3BQKVH9I2X
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:223:in `open_loop': redirection forbidden: https://developer.apple.com/account/ios/certificate/certificateContentDownload.action?displayId=2REXXTEJ78&type=3BQKVH9I2X -> http://developer.apple.com/account/selectTeam.action (RuntimeError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:689:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:34:in `open'
from /Library/Ruby/Gems/2.0.0/gems/pem-0.2.1/lib/pem/developer_center.rb:276:in `create_push_for_app'
from /Library/Ruby/Gems/2.0.0/gems/pem-0.2.1/lib/pem/developer_center.rb:211:in `fetch_cer_file'
from /Library/Ruby/Gems/2.0.0/gems/pem-0.2.1/lib/pem/cert_manager.rb:12:in `run'
from /Library/Ruby/Gems/2.0.0/gems/pem-0.2.1/bin/pem:38:in `block (2 levels) in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.0/lib/commander/command.rb:180:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.0/lib/commander/command.rb:180:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.0/lib/commander/command.rb:155:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.0/lib/commander/runner.rb:421:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.0/lib/commander/runner.rb:81:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.0/lib/commander/delegates.rb:8:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.0/lib/commander/import.rb:10:in `block in <top (required)>'

@KrauseFx
Copy link
Contributor

Answer: fastlane-old/sigh#12

Have you had time to test what I posted?

@alistra
Copy link
Author

alistra commented Dec 22, 2014

It doesn't work with the line you provided, but so far with testing on around 10 apps this seems to work:

    cookies = ""
    page.driver.cookies.each { |key, val| cookies += "#{key}=#{val.value}; " }
    data = open(url, {'Cookie' => cookies}).read

@KrauseFx
Copy link
Contributor

Thanks @alistra, this seems to be fixed with the latest version 👍

@fastlanebot
Copy link

This issue was migrated to fastlane/fastlane#2839. 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 🚀

@fastlane-old fastlane-old locked and limited conversation to collaborators Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants