You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Worker code can throw an uncaught exception if KV limit is exceeded but the request limit is not, we should wrap all .get functions call with a trycatch directive that will log the message but ultimately return null at the end as the worker cannot do anything and should return the fetch call as cloudflare will handle the fail case? 🤷🏻
cs-cloudflare-worker-bouncer/pkg/cloudflare/worker/worker.js
Lines 189 to 226 in f242e18
Worker code can throw an uncaught exception if KV limit is exceeded but the request limit is not, we should wrap all
.get
functions call with atry
catch
directive that will log the message but ultimately returnnull
at the end as the worker cannot do anything and should return thefetch
call as cloudflare will handle thefail
case? 🤷🏻https://developers.cloudflare.com/kv/api/read-key-value-pairs/#get-method
The text was updated successfully, but these errors were encountered: