Exception: SeatLayer::AuthError

Inherits:
APIError show all
Defined in:
lib/seatlayer/errors.rb

Overview

401/403 — bad key, revoked key, or a live key used against a test event.

Instance Attribute Summary

Attributes inherited from APIError

#body, #code, #request_id, #status

Instance Method Summary collapse

Methods inherited from APIError

from_response, #initialize

Constructor Details

This class inherits a constructor from SeatLayer::APIError

Instance Method Details

#mode_mismatch?Boolean

The key's mode and the event's mode disagree. The most common cause of a "works locally, 403s in production" report.

Returns:

  • (Boolean)


58
59
60
# File 'lib/seatlayer/errors.rb', line 58

def mode_mismatch?
  code == "mode_mismatch"
end