HTTP 422 Schedule required. The TypeScript SDK’s schedule.skipToNext finds no queue on the target and none was passed, before any request is sent.
When it happens
Only the TypeScript SDK raises it, as a PubNioError, before it sends a request.
Response body
{
"type": "https://pubnio.com/docs/problems/schedule-required/",
"status": 422,
"title": "Schedule required",
"detail": "Target 2b4d6f80-1a3c-4e5f-9a7b-0c2d4e6f8a9b on post 7a9c1e3f-5b7d-4f0a-8c2e-4f6a8b0c2d4e is not assigned to a schedule queue.",
"code": "schedule_required",
"param": "queueId",
"nextAction": "Use schedule.change with an explicit scheduledAt to reschedule this target, or pass queueId to assign it to a queue."
}| Field | Type | Always present |
|---|---|---|
param |
"queueId" |
Yes |
nextAction |
string | Yes |
Recovery for agents
- Do what
nextActionsays. paramis the field to change.
Retryable
No: the SDKs mark HTTP 422 not retryable.
Limits
- Match on
typeorcode, not ondetail.