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.