Harbor Gateway
  1. Diagnostics
Harbor Gateway
  • Harbor Gateway API
    • Health & Status
      • Admin interface
      • Health check
    • Transactions
      • List all transactions
      • Create a transaction
      • Get transaction details
      • Release transaction
      • Open locker by transaction ID
    • Lockers
      • List all lockers
      • Get locker details
      • Open locker by ID
      • Open all lockers
    • System
      • Get system information
      • Update system configuration
      • Get system logs
    • Schemas
      • Locker
      • TransactionResponse
      • LockController
      • System
      • LogEntry
      • OperationResponse
      • LockerOperationResponse
      • MultiStatusOperationResponse
      • OpenAllLockersResponse
      • Error
  • Harbor Gateway Admin API
    • Authentication
      • Login with Basic Auth and receive session token
      • Logout and invalidate session token
    • Controllers
      • List all lock controllers
      • Manually add a lock controller
      • Trigger manual mDNS scan
      • Get controller details
      • Update controller settings
      • Remove controller from system
      • Replace a failed controller
      • Adjust locker count for controller
    • Lockers
      • Update locker service state
    • System
      • Refresh network information
      • Reboot gateway system
    • Diagnostics
      • Test Sentry error tracking integration
        GET
    • Schemas
      • Schemas
        • Controller
        • ControllerDetails
        • CreateControllerRequest
        • AdjustLockerCountResponse
        • OperationResponse
        • Error
      • Response
        • Unauthorized
        • NotFound
        • InternalServerError
  1. Diagnostics

Test Sentry error tracking integration

GET
/diagnostics/sentry-test
Debug endpoint that intentionally triggers an error to verify Sentry integration.
This endpoint verifies:
Errors are being sent to Sentry
Performance monitoring is working
Request context is captured correctly
Authentication is working
After accessing this endpoint, check your Sentry dashboard for:
Error event in Issues (ZeroDivisionError)
Transaction in Performance monitoring
User context (admin username)
Admin only - requires authentication.

Request

Authorization
Basic Auth
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
or
API Key
Add parameter in header
X-Session-Token
Example:
X-Session-Token: ********************
or

Responses

🟠401Unauthorized
application/json
Authentication required or credentials invalid
Body

🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/diagnostics/sentry-test' \
--header 'Authorization: Basic <encoded-value>'
Response Response Example
401 - Example 1
{
    "error": "INVALID_REQUEST",
    "message": "string",
    "timestamp": "2019-08-24T14:15:22Z",
    "details": {}
}
Modified at 2025-11-27 00:06:25
Previous
Reboot gateway system
Next
Controller
Built with