Retrieve an error
Retrieve detailed information about a single error group, including its lifecycle state and the worker versions it has affected.
secretKeyAuthorizationBearer <token>Use a named environment API key. It starts with tr_dev_sk_, tr_prod_sk_, tr_stg_sk_, etc.
Create a named API key in the API Keys section of your Trigger.dev project dashboard. Choose the narrowest access preset that supports your integration.
Our TypeScript SDK will default to using the value of the TRIGGER_SECRET_KEY environment variable if it is set. If you are using the SDK in a different environment, you can set the key using the configure function.
import { configure } from "@trigger.dev/sdk";configure({ accessToken: "tr_dev_sk_1234" });errorId*stringThe ID of an error group, starts with error_.
Successful request
application/json- response
id*stringThe unique ID of the error group, prefixed with error_
fingerprint*stringThe raw fingerprint the error is grouped by
taskIdentifier*stringThe identifier of the task the error belongs to
errorType*stringThe error type or name (e.g. TypeError)
errorMessage*stringThe normalized error message
count*integerThe total number of occurrences of this error group
firstSeen*stringdate-timelastSeen*stringdate-timeaffectedVersions*array<string>The most recent worker versions the error has occurred in (up to five)
status*string"unresolved""resolved""ignored"resolvedAt?stringdate-timeresolvedInVersion?stringresolvedBy?stringThe ID of the user who resolved the error, when attributable
ignoredAt?stringdate-timeignoredUntil?stringdate-timeignoredReason?stringignoredByUserId?stringignoredUntilOccurrenceRate?numberignoredUntilTotalOccurrences?integercurl -X GET "https://api.trigger.dev/api/v1/errors/error_8f3b2a1c9d4e5f60" \ -H "Authorization: Bearer $TRIGGER_SECRET_KEY"{ "id": "error_8f3b2a1c9d4e5f60", "fingerprint": "string", "taskIdentifier": "string", "errorType": "string", "errorMessage": "string", "count": 0, "firstSeen": "2019-08-24T14:15:22Z", "lastSeen": "2019-08-24T14:15:22Z", "affectedVersions": [ "string" ], "status": "unresolved", "resolvedAt": "2019-08-24T14:15:22Z", "resolvedInVersion": "string", "resolvedBy": "string", "ignoredAt": "2019-08-24T14:15:22Z", "ignoredUntil": "2019-08-24T14:15:22Z", "ignoredReason": "string", "ignoredByUserId": "string", "ignoredUntilOccurrenceRate": 0, "ignoredUntilTotalOccurrences": 0}Was this page helpful?
Last updated
Edit on GitHub