Skip to content

Invalid time zone (invalid-timezone)

PubNio invalid-timezone problem, HTTP 422: A workspace create or update sends a defaultTimezone that is not an IANA time zone name.

HTTP 422 Invalid time zone. A workspace create or update sends a defaultTimezone that is not an IANA time zone name.

When it happens

2 operations declare it: POST /api/v1/workspaces and PATCH /api/v1/workspaces/{workspaceId}.

Response body

{
  "type": "https://pubnio.com/docs/problems/invalid-timezone/",
  "status": 422,
  "title": "Invalid time zone",
  "detail": "Use a valid IANA time zone such as America/New_York.",
  "code": "invalid_timezone",
  "timezone": "Eastern Time",
  "nextAction": "Send defaultTimezone as an IANA name such as America/New_York, or omit it to use UTC.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
Field Type Always present
timezone string Yes
nextAction string Yes

Recovery for agents

  • Do what nextAction says.

Retryable

No: the SDKs mark HTTP 422 not retryable.

Limits

  • Match on type or code, not on detail.

Type to search…

↑↓ navigate↵ selectEsc close