All Collections
Versions 3.0 and 2.0
Troubleshoot
Errors
What happens when a Data Hook® fails its call to an external API?
What happens when a Data Hook® fails its call to an external API?
Elisa Dinsmore avatar
Written by Elisa Dinsmore
Updated over a week ago

This article is for Flatfile's Portal 2.0, Portal 3.0 and Workspaces. If you'd like to check out the latest version of the Flatfile Data Exchange Platform, click here!

Our recommendation is to use a try-catch block in the JavaScript for your Data Hook. This will prevent the Data Hook from crashing and enable you to set a warning message on the field where the Data Hook has failed, alerting you or your users to any problems with the API calls.

Take note that in order to review these errors, you will have to have your browser console open or configure the errors to write to our Data Hook logs.

Did this answer your question?