Skip to main content
This example shows how to surface Form filling SDK errors in your app. The SDK reports problems through SukiFormFillingError, and start() does not throw, so your UI needs an explicit error handler. In React, read errors from useFormFilling(). In JavaScript, use onError on the client or listen for form-filling:error. Branch on err.code and err.reason in your handler. Use err.message for display only.

React

FormFillingProvider exposes the latest error through useFormFilling():
React

JavaScript

Pass onError when you create the client:
JavaScript

Blank UI with no error

If the container stays empty and no error fires, check container height first. The iframe needs explicit height on rootElement in JavaScript or on the FormFilling wrapper in React.
HTML
Also confirm CSP frame-src allows https://sdk.suki-stage.com (staging) or https://sdk.suki.ai (production), and that partnerId and partnerToken are valid. Refer to Error handling and Prerequisites for full troubleshooting.

Next steps

Refer to Error handling for all error codes and outcomes Refer to Configuration for container sizing Refer to Events for form-filling:error
Last modified on July 23, 2026