---
title: "Comment target invalid (comment-target-invalid)"
description: "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."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Comment target invalid (comment-target-invalid)

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`](https://pubnio.com/api/v1/docs#tag/comments/POST/api/v1/comments).

## Response body

```json
{
  "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`.

## Related

- [Comments problems](https://pubnio.com/docs/problems/#comments)
- [API reference](https://pubnio.com/docs/api/)

Source: https://pubnio.com/docs/problems/comment-target-invalid/index.mdx
