Errors
When a run fails, you get a class, a code, the step, a message, whether it is worth trying again, and a trace id. For a problem in the script you also get the line, the column, and the bar.
runtime.error("message") stops the script with the words you wrote.
log.info, log.warning, and log.error do not stop the script. The run returns the newest log lines. See Reference the connector reads.
What to do#
script_compileandscript_runtimemean the script itself is the problem. Fix the line. Running the same code again will fail the same way.engine_internalis not your script. Try once more, then send us the trace id.data_providermeans the prices could not be loaded. Try again later.timeoutandlimitmean the script was too slow, too large, or produced too much. Make it lighter.systemmeans the run could not be reached. Try again later.
When a script reads volume and the chart has none, the message is: "This script uses volume, but this chart has no volume data."
The table below is the message you see for each code.
| Code | Class | Message | Retry |
|---|---|---|---|
| script_compile | script_compile | The script did not compile. Fix the line shown and run it again. | Do not retry unchanged |
| script_runtime | script_runtime | The script stopped with an error on the bar shown. Fix the line shown and run it again. | Do not retry unchanged |
| script_empty | script_compile | There is no code to run. | Do not retry unchanged |
| script_inputs | script_compile | A setting is not valid for this script. Check the values in its settings. | Do not retry unchanged |
| script_too_long | limit | The script is too long to run. | Do not retry unchanged |
| engine_internal | engine_internal | The BullScript™ engine hit an internal error. This is not a problem in your script. Try again; if it keeps happening, send us the trace ID. | Retry |
| engine_unavailable | engine_internal | The BullScript™ engine is not available right now. Try again in a minute. | Retry |
| engine_output_unreadable | engine_internal | The BullScript™ engine finished but its result could not be read. Try again; if it keeps happening, send us the trace ID. | Retry |
| data_unavailable | data_provider | The market data for this chart could not be loaded. Try again in a moment. | Retry |
| volume_unavailable | data_provider | This script uses volume, but this chart has no volume data. | Do not retry unchanged |
| data_rate_limited | data_provider | Too many markets were opened just now. Try again in a moment. | Retry |
| limit_time | timeout | The script took too long and was stopped. | Do not retry unchanged |
| limit_memory | limit | The script used too much memory and was stopped. | Do not retry unchanged |
| limit_output | limit | The script produced too much output and was stopped. | Do not retry unchanged |
| limit_busy | limit | The script runner is busy. Try again in a moment. | Retry |
| source_missing | system | That script version is no longer available. | Do not retry unchanged |
| system_unreachable | system | The script could not be fetched just now. Try again in a moment. | Retry |
| cancelled | system | The run was cancelled before it finished. | Retry |