Reference

### Errors &amp; common mistakes

The error event, plus the integration mistakes that trip people up most often.

### Navigate to header: The error event The error event

Recoverable iframe errors fire on the

error

event:

intake

.

on

(

'error'

, (\{

code

,

message

\})

=&gt;

\{

console

.

error

(

'Filecheck error'

,

code

,

message

);

\});

### Navigate to header: Common mistakes Common mistakes

| Mistake | Correct approach |
| --- | --- |
| create('intake', \{ ruleId \}) | The option is workflowId , not ruleId . |
| Re-deriving canProceed from status or files | Use canProceed as-is. |
| Secret key sk\_… in browser JS | Server-side only. |
| Fixed height on the mount div | Set width only; the widget self-sizes. |
| Calling Filecheck() before the async script loads | Poll for window.Filecheck first. |
| Two elements, assuming one controls both | Track canProceed per element. |
| Ignoring proof when approvalRequired: true | Call respondToProof() or the workflow stalls. |
| Hand-building connector bindings in a plugin | Pass connectorId or the connector JSON. |
| Polling for window.Filecheck without .mount | Check window.Filecheck &amp;&amp; window.Filecheck.mount . |

Suggest edits

Raise issue

[Suggest edits](https://github.com/sterlyai/mintlify-docs/edit/main/reference/errors.mdx)

[Raise issue](https://github.com/sterlyai/mintlify-docs/issues/new?title=Issue%20on%20docs&body=Path:%20/reference/errors)

[Navigate to header: The error event](https://filecheck.io/docs/reference/errors#the-error-event)

[Navigate to header: Common mistakes](https://filecheck.io/docs/reference/errors#common-mistakes)