user_exception

RuntimeSeen in: The editor, Charts, Runs

What happened

The script raised an error of its own while it ran. The sandbox reports only the file and the line in your own code, never a path or a trace from Forge's side, so a message cannot leak how the machine is built.

What to do

Open the file at the line in detail and fix what it does there. Run it on the same bars again to check.

Example

json
{
  "request_id": "7d2b1c44-95a0-4e3b-8a6f-1c0d9e2f5a37",
  "ok": false,
  "error": {
    "code": "user_exception",
    "message": "The script raised an error.",
    "detail": {
      "file": "indicator.py",
      "line": 12
    }
  }
}

Ask about this in the forum