Exception: SeatLayer::AuthError
- 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
-
#mode_mismatch? ⇒ Boolean
The key's mode and the event's mode disagree.
Methods inherited from APIError
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.
58 59 60 |
# File 'lib/seatlayer/errors.rb', line 58 def mode_mismatch? code == "mode_mismatch" end |