> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/partner/zh/nin-xiang-liao-jie-shen-me/platform-features/action-management/event-notifications-and-postbacks/test-and-troubleshoot-a-postback-url.md).

# 测试并排查 Postback URL

你可以在依赖其用于生产环境之前先测试回传 URL。这有助于你确认你的端点接受该请求，并更快地定位投递问题。

#### 测试你的回传 URL

{% hint style="success" icon="circle-info" %}
**注意：** 在测试时，我们建议暂时将你的回传 URL 修改为传递一个硬编码的测试值（例如，“12345678”而不是 `{SubId1}`）以避免错误。如果你的服务器接受该提交，你可以安全地将回传 URL 恢复为使用变量。
{% endhint %}

1. 在顶部导航栏中，选择 **发现** → **我的品牌**.
2. 根据你的视图继续：
   * 对于 ![](/files/5ac1d6fd467ef06782292f13a0677acb74ab20bc) **\[网格视图]**，选择你要测试回传的品牌，然后选择 ![](/files/bc9aa794eb347d6f55e668dbe0e98eae7d1cd905) **\[更多] → 跟踪集成**.
   * 对于 ![](/files/577a57e22f7c17be1ad01661bd4aa4e7d0aebcf5) **\[列表视图]**，将鼠标悬停在你要测试回传的品牌上，然后选择 ![](/files/bc9aa794eb347d6f55e668dbe0e98eae7d1cd905) **\[更多]** → **跟踪集成**.
3. 在 *回传* 部分，找到你想测试的回传 URL，然后选择 ![](/files/a9517a60946f0f86dabf7c2dbae09cb519d9f0b7) **\[操作] → 测试**.
4. 填写你想测试的 URL，然后选择 **开始测试**.

   <div data-with-frame="true"><figure><img src="/files/a0bae6a1e08818853872366b9818ce991d731be9" alt=""><figcaption></figcaption></figure></div>

#### 了解重试行为

如果回传在 impact.com 向你的目标 URL 发送时失败，impact.com 会自动重试投递。这有助于应对临时网络问题或服务器短时间不可用的情况。

impact.com 最多会对失败的回传重试 15 次。

在以下情况下，impact.com 不会重试回传：

* 目标 URL 格式错误或无效。
* 目标 URL 或其主机无法解析，例如在 DNS 查询失败期间。

impact.com 会跳过来自的 HTTP 响应的前 3 次重试 `400` 用于 `500`.

| 重试次数     | 重试前延迟  |
| -------- | ------ |
| 第 1 次重试  | +15 秒  |
| 第 2 次重试  | +15 秒  |
| 第 3 次重试  | +15 秒  |
| 第 4 次重试  | +3 分钟  |
| 第 5 次重试  | +3 分钟  |
| 第 6 次重试  | +15 分钟 |
| 第 7 次重试  | +15 分钟 |
| 第 8 次重试  | +15 分钟 |
| 第 9 次重试  | +2 小时  |
| 第 10 次重试 | +2 小时  |
| 第 11 次重试 | +2 小时  |
| 第 12 次重试 | +6 小时  |
| 第 13 次重试 | +6 小时  |
| 第 14 次重试 | +6 小时  |
| 第 15 次重试 | +6 小时  |

#### 排查错误

| 错误       | 说明                                                                                 |
| -------- | ---------------------------------------------------------------------------------- |
| 缺少必需参数   | 您的服务器可能期望传入一个值而不是变量。修改您的回传 URL 以传递一个测试值（例如，“12345678” 而不是 `{SubId1}`），看看它是否接受硬编码值。 |
| 区分大小写的变量 | 动态变量区分大小写，且必须完全一致，这意味着 `{SubId1}` 不同于 `{subid1}`。请再次检查您的变量是否体现了正确的大小写。             |
| 拒绝访问     | 大多数回传服务器都有一个安全令牌或值，必须与动态变量一起传递。请与您网站的技术团队合作（或参考您网站提供商的文档），了解访问服务器所需的令牌或安全值。        |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.impact.com/partner/zh/nin-xiang-liao-jie-shen-me/platform-features/action-management/event-notifications-and-postbacks/test-and-troubleshoot-a-postback-url.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
