Cron errors
Every error the clock binding can give, when it happens and how to fix it.
Errors come from three places: your app talking to the clock, a deploy, and the SDK on your own side. In the SDK, an error from the platform is a PlatformError with the status, a stable code, a plain message and a howToFix sentence.
From the clock binding
400 invalid_schedulemessage, and all of them are in how_to_fix. Fix the schedule and restart the app.400 invalid_timer403 read_only_tokencohostly dev and access keys get. Only the running app can change schedules and timers.403 binding_not_declaredbindings.cron. Add "cron": { "code": true } (or a schedule) to the settings file and deploy.401 invalid_token429 rate_limitedretry-after.503 scheduler_unavailableAt deploy
A bad schedule stops the deploy. The previous version stays live, and the message says what to change.
Schedule gaps shorter than the minimumTimeout above the maximumtimeout is above the longest run the platform allows (30 minutes by default). Lower it.Too many schedulesName already usedname is in the settings file and in your code, or twice in one place. Rename one.No time zonetime_zone and your profile has none to fall back on. Add time_zone.when not understoodA date that never happensBoth http and commandrun can hold only one. Remove one.run.http.path under /__platformCode schedules never arrived"code": true but no schedule reached the platform within 90 seconds, or the app crashed first. Either remove bindings.cron, or make sure start-up code calls platform.cron.schedule() and the app starts cleanly.In the SDK
These are thrown in your own process.
Name missing or invalidname, or it does not match the pattern. Give it a lower-case name with letters, digits, _ and -.Timer payload too largeWhen your app answers a job call
These are not errors the platform sends. They are the answers your app gives, and what the platform makes of them. See what your app receives.
401 or 403X-Platform-Context and compare caller.kind and caller.label correctly. A 4xx is never retried.404405POST.500retries.Read next
Up next · BindingsEnvironment variablesEvery variable the platform sets for your app, which ones are secret, and exactly when each one appears.Keep reading
← Back to Limits