Skip to content
Last updated

Error handling

Listen for runtime errors

Runtime errors are sent over the errors Websocket. It is important to always be listening for these events as they can occur at any time.

ws://[IP_address]/NimbusLite/instincterrors

This event contains error information and options for how to resolve the error, which can be either a single error or a group of related errors.


Handle runtime errors

To handle the runtime error, use the data from the runtime error event to specify the desired resolution. For group errors, use a single call that specifies the resolution for each error.

curl -i -X PUT \
  'http://{{your_prep_ip_address}}/api/v1/errors/runtime' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "string",
    "groupId": "string",
    "errorData": [
      {
        "id": "string",
        "selectedResponse": "string"
      }
    ],
    "selectedResponse": "string"
  }'
Response
No content