forbidden_call

CompileSeen in: The editor, Charts, Runs

What happened

The sandbox lets a script read the bars it is given and compute, and nothing else. A call that opens a network connection, starts a new process, writes a file, or reaches into the kernel is refused when it is made, and the answer carries the line of your own file.

What to do

Remove the call at that line. Data and settings come in through the bars and the settings Forge gives your code, and results go out as outputs.

Example

json
{
  "request_id": "7d2b1c44-95a0-4e3b-8a6f-1c0d9e2f5a37",
  "ok": false,
  "error": {
    "code": "forbidden_call",
    "message": "The script made a call the sandbox does not allow.",
    "detail": {
      "file": "indicator.py",
      "line": 5
    }
  }
}

Ask about this in the forum