NextJS - access_denied (Script execution time exceeded)

Hey Zachary,

The issue is most likely caused by the script execution timeout via Auth0 Actions.

You can usually spot this in the Dashboard > Monitoring > Logs filtered by:

type:f

As per documentation:

Each execution of a flow must complete in 10 seconds or less or the processing will end in an error.

I recommend reviewing the Action code, mainly if the Action makes any 3rd party API requests, as that’s the most common cause of the timeout errors.

I recommend installing the Real-time Webtask Logs Extension as it helps to debug the issues like this one.

Thanks,
Art

2 Likes