Exception: AppStoreServerApi::Error::UnauthorizedError

Inherits:
AppStoreServerApi::Error show all
Defined in:
lib/app_store_server_api/error.rb

Overview

The JSON Web Token (JWT) in the authorization header is invalid. For more information, see Generating JSON Web Tokens for API requests. other:

- wrong environment (sandbox/production)

Constant Summary

Constants inherited from AppStoreServerApi::Error

ERROR_CODE_MAP

Instance Attribute Summary

Attributes inherited from AppStoreServerApi::Error

#code, #response

Instance Method Summary collapse

Methods inherited from AppStoreServerApi::Error

handle_error, #inspect, #to_h

Constructor Details

#initialize(code: 4010000, message: 'unauthorized error', response:) ⇒ UnauthorizedError

Returns a new instance of UnauthorizedError.



35
36
37
# File 'lib/app_store_server_api/error.rb', line 35

def initialize(code: 4010000, message: 'unauthorized error', response:)
  super(code: code, message: message, response: response)
end