As an extra note, I hit many API errors at the time I encountered this issue when doing
PUT: https://api.cloudflare.com/client/v4/accounts/${env.CF_ZONE_ID}/rules/lists/${env.CF_BULK_REDIRECT_LIST_ID}/items
{
"result": null,
"success": false,
"errors": [
{
"code": 10040,
"message": "you have been ratelimited please wait and try again"
}
],
"messages": []
}
I did some more troubleshooting later on, and now the redirect is applied almost instantly.
How can we prevent this from happening in the future?
I did check the limits you mentioned, I only run 1 API call in a minute CRON job in my Worker. So I would expect to be far from any rate limiting mentioned there.
The error 10040 is not well documented and mainly related to lists
The issue doesn’t seem to happen consistently (my CRON job is running fine and then for no apparent reason will start failing with 10040 )
I moved to a pure Worker solution to replace Bulk Redirect, since I was pressed by time.
I’ll leave this thread open in case some other may have similar issues.