Skip to content

Comment target invalid (comment-target-invalid)

PubNio comment-target-invalid problem, HTTP 400: The comment target does not resolve: empty, not HTTPS, a permalink with credentials, a malformed LinkedIn URN or Bluesky AT URI, or a bare ID without a provider.

HTTP 400 Comment target invalid. The comment target does not resolve: empty, not HTTPS, a permalink with credentials, a malformed LinkedIn URN or Bluesky AT URI, or a bare ID without a provider.

When it happens

One operation declares it: POST /api/v1/comments.

Response body

{
  "type": "https://pubnio.com/docs/problems/comment-target-invalid/",
  "status": 400,
  "title": "Comment target invalid",
  "detail": "Use an HTTPS permalink or a provider ID.",
  "code": "comment_target_invalid",
  "reason": "Use an HTTPS permalink or a provider ID.",
  "nextAction": "Send a provider post or comment ID, or a permalink that contains one.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
Field Type Always present
reason string Yes
targetKind "post", "comment" No
nextAction string Yes

Recovery for agents

  • Do what nextAction says.

Retryable

No: the SDKs mark HTTP 400 not retryable.

Limits

  • Match on type or code, not on detail.

Type to search…

↑↓ navigate↵ selectEsc close