# Limitations（限制）

在向 Backpack 发起连接、发送交易或签名消息请求时，Backpack 可能会响应error。

## Errors（错误处理）

以下是所有可能的错误代码及其含义。这些错误信息借鉴了 Ethereum 的 [EIP-1474 ](https://eips.ethereum.org/EIPS/eip-1474#error-codes)和 [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193#provider-errors) 标准。

| 错误代码   | 标题                               | 描述                                                                         |
| ------ | -------------------------------- | -------------------------------------------------------------------------- |
| 4900   | Disconnected                     | Backpack 无法连接到网络。                                                          |
| 4100   | Unauthorized                     | 请求的方法和/或账户未获得用户授权。                                                         |
| 4001   | User Rejected Request            | 用户通过 Backpack 拒绝了请求。                                                       |
| -32000 | Invalid Input                    | 缺少或无效的参数。                                                                  |
| -32002 | Requested resource not available | 当应用尝试提交新交易时，若 Backpack 的审批对话框已打开，出现此错误。每次只能有一个审批窗口打开。用户应在发起新交易之前批准或拒绝当前交易。 |
| -32003 | Transaction Rejected             | Backpack 无法识别有效的交易。                                                        |
| -32601 | Method Not Found                 | Backpack 无法识别此方法。                                                          |
| -32603 | Internal Error                   | Backpack 内部错误。                                                             |

通常，这些错误信息具有易于解析的结构，包含错误代码和解释。例如：

```javascript
try {
  await window.solana.signMessage();
} catch (err) {
  //  {code: 4100, message: 'The requested method and/or account has not been authorized by the user.'}
}
```

这些错误将帮助开发者识别问题并采取相应的措施。错误信息中的 `code` 表示具体的错误类型，`message` 则提供关于错误的详细说明。


---

# Agent Instructions: 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:

```
GET https://support.backpack.exchange/support-docs/cn/qian-bao/ji-shu-wen-dang/deeplinks/limitations-xian-zhi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
