> For the complete documentation index, see [llms.txt](https://help.listly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.listly.io/docs/zh-hans/~/revisions/kGiwCYgJl2GqNRJ3XmvM/support/solutions-by-extraction-failure-message/cuo-wu-dai-ma-actionscripterrorscripterror.md).

# 错误代码 - ActionScriptError、ScriptError

<figure><img src="https://content.gitbook.com/content/LlkvcuviCyyU871Augk5/blobs/wyVNrrcGL23EpXkuVvVN/action%20script%201.png" alt=""><figcaption></figcaption></figure>

当设置中输入的脚本导致错误时会发生 ActionScriptError。此错误通常属于以下两种情况：

{% stepper %}
{% step %}

### 运行一开始良好，但之后失效

网站结构或加载方式发生了变化，导致原本可用的代码不再匹配或无法正常执行。
{% endstep %}

{% step %}

### 代码从一开始就有问题

可能存在选择器错误、语法问题或其它逻辑错误，导致脚本无法正确运行。
{% endstep %}
{% endstepper %}

{% hint style="info" %}
✅ 如何修复（输入 CSS 选择器时）

* 如果是您自己编写的代码，请检查网站的结构或按钮位置最近是否发生了变化。
* 如果是使用 AI 工具创建的代码，请尝试重新生成或检查点击目标和条件逻辑。
* 对于 Listly 作为付费服务提供的脚本，在交付后的 5 天内如果出现问题，可免费修订一次。之后，由于网站变化导致的修改需要单独申请并收费。
  {% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.listly.io/docs/zh-hans/~/revisions/kGiwCYgJl2GqNRJ3XmvM/support/solutions-by-extraction-failure-message/cuo-wu-dai-ma-actionscripterrorscripterror.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
