> 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="/files/0c646d95380416df57b576599629e5eeb718c384" 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 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.listly.io/docs/zh-hans/~/revisions/kGiwCYgJl2GqNRJ3XmvM/support/solutions-by-extraction-failure-message/cuo-wu-dai-ma-actionscripterrorscripterror.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.
