Skip to main content

Troubleshoot Events

Start with the HTTP status, the site address, the exact event name, and APP_SLUG on app routes.

Subscription and API errors#

SymptomLikely causeWhat to do
403 on subscribe, unsubscribe, or app subscribersThe caller doesn't have cloud accessUse an API key generated by an organization owner or admin
400 Invalid event typeTypo or unsupported nameCopy a name from GET /api/cloud/events/
400 on subscribeUnknown function_id, or the function is already subscribedCheck the function id; unsubscribe before subscribing again
404 NOT_FOUND on unsubscribeThe function wasn't subscribedCheck the app's subscribers with GET /api/apps/APP_SLUG/events/EVENT_NAME/
404 on the app subscribers routeWrong app slugCheck the slug and site address
Function missing from an app's subscribersThe function belongs to another appCheck the subscribers of the function's own app

Delivery#

SymptomLikely causeWhat to do
No function run after a record changeThe function is in a different app from the table, its filter conditions didn't match, or the change was an upsert or a bulk or filtered delete, which fire no eventsSubscribe a function in the table's app; test the condition against the payload, since a skipped run leaves no record
PRE_USER_CREATE changes are ignoredThe function returned the wrong shape, or took longer than 30 secondsReturn an object of user fields, such as {"first_name": "Ada"}, and keep the function fast
Creating a user failsA PRE_USER_CREATE function failed, timed out, or is inactiveFix or reactivate the function, or unsubscribe it

Other errors#

SymptomCheck
401The credential is missing, expired, or from another site
404 on /events/Use /api/cloud/events/, not an app path
5xxNote the time and request, then contact support without including tokens or payloads