HTTP 422 Provider mismatch. A comment request’s provider, or the provider its target resolves to, differs from the selected account’s provider.
When it happens
One operation declares it: POST /api/v1/comments.
Response body
{
"type": "https://pubnio.com/docs/problems/provider-mismatch/",
"status": 422,
"title": "Provider mismatch",
"code": "provider_mismatch",
"provider": "facebook",
"expectedProvider": "instagram",
"param": "provider",
"nextAction": "Send the provider that owns the selected account or omit provider.",
"requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}| Field | Type | Always present |
|---|---|---|
provider |
one of 21 strings | Yes |
expectedProvider |
one of 21 strings | Yes |
param |
string | 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.