Error Handling
Errors
500 Internal Server Errors
Server errors indicate an error on Finch’s side and return an HTTP response with a 500
status code.
Common causes
- Finch is experiencing internal system issues. This is rare.
- The underlying employment system is experiencing internal system issues.
- Finch received an unsupported response from the underlying employment system and is unable to process it. These are usually quickly resolved by our support team.
- The end-user has intentionally or unintentionally revoked Finch’s access to their system. This is usually returned as a
401 - reauthenticate_user
error but can sometimes be returned as500 - server_error
.
Troubleshooting steps
- Retrying immediately usually will not resolve the issue. We recommend retrying the API request in a few hours.
- If the error persists, submit a support ticket with the
Finch-Request-ID
present in the headers of the response.
401 re-authentication errors
Authentication errors indicate an error on the end user’s side. See the re-authentication docs for more on common causes and troubleshooting steps.
408 client connection errors
Timeout errors occur when a client connection is closed while the API server is still processing the request. Currently, our server timeout is set to 6 minutes. Therefore, our recommendation is to increase the configured client timeout to 6 minutes to ensure that the client does not timeout prematurely. If you have not configured one explicitly, there is likely a default depending on the request library you’re using. Note, it’s not common that our API takes this long to service a request.
Batch Requests
A number of Finch endpoints (like /individual
, /employment
, and /pay-statement
) are batch endpoints.
For such endpoints, Finch can return errors in two ways:
- Return an error per batch request item within the response body. The error will be in the same format described in the Error Types guide.
- Finch also returns an
error_name
anderror_message
in the response body. These fields are now deprecated in favor of conforming to our standard error formatting, and will be removed entirely in June 2023.
- Finch also returns an
- Return an error at the HTTP status code level. The error will be in the same format described in the Error Types guide.
Ensure your application can handle both types of errors from a batch API call.
Refer to the API reference to ensure your application handles errors from each batch endpoint correctly as response schemas vary by endpoint.
Was this page helpful?