BizKitHub
PUBLIC_CRON_SCHEDULE_INVALID

Cron schedule is not a valid cron expression or time zone.

Z BizKitHub Docs, dokumentacja kodów błędów API

Nazwy i opisy kodów prowadzimy po angielsku.

HTTP 400Publiczne API
`schedule` must be a standard 5-field cron expression (or 6 fields with seconds), e.g. `*/5 * * * *`, and `scheduleTimezone` an IANA time zone, e.g. `Europe/Prague`. In `/cron-run/start` and `/cron-run/record` an invalid schedule does not reject the run: it is ignored and reported in `warnings`.

Jak to rozwiązać

  1. 1

    Validate the expression, e.g. at https://crontab.guru.

Przykładowa odpowiedź

API odpowiada statusem HTTP 400 i treścią w formacie JSON. Porównuj errorCode, nie message. Komunikaty mogą się zmieniać, kody pozostają stałe.

application/json
{
  "state": "error",
  "code": 400,
  "message": "Cron schedule is not a valid cron expression or time zone.",
  "errorCode": "PUBLIC_CRON_SCHEDULE_INVALID",
  "hint": "`schedule` must be a standard 5-field cron expression (or 6 fields with seconds), e.g. `*/5 * * * *`, and `scheduleTimezone` an IANA time zone, e.g. `Europe/Prague`. In `/cron-run/start` and `/cron-run/record` an invalid schedule does not reject the run: it is ignored and reported in `warnings`.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_CRON_SCHEDULE_INVALID"
}
Dokumentacja referencyjna:Kody błędów API|Publiczne API|HTTP 400