class Spaceship::TooManyRequestsError

Raised when 429 is received from App Store Connect

Attributes

rate_limit_user[R]
retry_after[R]

Public Class Methods

new(resp_hash) click to toggle source
Calls superclass method
# File spaceship/lib/spaceship/errors.rb, line 51
def initialize(resp_hash)
  headers = resp_hash[:response_headers] || {}
  @retry_after = (headers['retry-after'] || 60).to_i
  @rate_limit_user = headers['x-daiquiri-rate-limit-user']
  message = 'Apple 429 detected'
  message += " - #{rate_limit_user}" if rate_limit_user
  super(message)
end

Public Instance Methods

show_github_issues() click to toggle source
# File spaceship/lib/spaceship/errors.rb, line 60
def show_github_issues
  false
end