# エラーコード - ActionScriptError、ScriptError

<figure><img src="/files/94847730284ee631a0f8bd7f497dc4cf53bd0ee4" alt=""><figcaption></figcaption></figure>

**ActionScriptError**は、**設定に入力されたスクリプトがエラーを引き起こす場合**に発生します。このエラーは通常、以下の2つのケースに分類されます。

{% stepper %}
{% step %}

### 最初は正常に動作していたが、サイトの構造や読み込み方法が変更されてコードが無効化された

サイト側でDOM構造、クラス名、ID、あるいはボタンの配置や読み込みタイミングが変更されると、既存のスクリプトがターゲット要素を正しく取得できずエラーになります。
{% endstep %}

{% step %}

### 最初からコードが正しく記述されていなかった可能性（セレクターエラー、構文の問題など）

セレクターの指定ミスやスクリプト内の構文エラー、条件ロジックの不整合などが原因で、そもそも期待どおりに動作していないケースです。
{% endstep %}
{% endstepper %}

#### ✅ 解決方法（CSSセレクターを入力する場合） <a href="#how-to-fix-when-entering-a-css-selector" id="how-to-fix-when-entering-a-css-selector"></a>

{% hint style="success" %}

* **自分で記述したコードの場合：** 最近サイトの構造やボタンの位置が変更されたかどうかを確認してください。
* **AIツールを使用して作成したコードの場合：** 再生成するか、クリックターゲットと条件ロジックを確認してください。
* **有料サービスとしてリストリー (Listly) が提供したスクリプトの場合：** 配信から5日以内に問題が発生した場合は、1回の無料修正が可能です。→ その後、サイト変更による修正は**別途依頼と費用が必要**です。
  {% endhint %}


---

# 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://help.listly.io/docs/ja/~/revisions/ms2wMhVhK1XeWg18p8eO/support/solutions-by-error-message/error-code-3.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.
