Skip to main content
Troubleshooting

Automation errors

Find out why an automation run failed, and stop a run on purpose with your own error.

Tape lists every failed run under Runs in the automation editor, whatever its execution type. Open a run to see its logs, the action that failed and the error message. After the fix, start a manual run to try again.

Common API errors​

Actions that call the Tape API can fail with these errors. The error message says what went wrong.

HTTP status codeCodeDescriptionExample
400validation or input_validationValidation error.A required value is missing, like a required field when a record is created or updated, or the text of a comment.
400record_no_permission or app_no_permissionPermission error.The automation has no permission for the step. Also happens when the Author of an action lacks the permission.

The code is the error_code of the API response. See Error codes in the API reference for all codes.

Calls to other services with the http client don't fail on an error status. Check statusCode in your script, as the HTTP client example shows.

Throw a custom error​

Throw an error in Perform a calculation or Execute a script to stop the run with a failed status. Tape logs your error message.

if (some_condition) {
throw new Error('Oops, some_condition was true');
}

The run stops at this point, and the remaining actions don't run. Use it when an important step fails and continuing makes no sense.

Next steps​