CARTO.js emits error objects when something goes wrong. Errors appear in your developer console if not caught. The error object has a code and a description to help you identify the problem and troubleshoot.
If you encounter an error while loading CARTO.js, the following table contains a list of known errors codes and possible solutions.
Error Code |
---|
api-key-required |
api-key-string |
username-required |
username-string |
non-valid-server-url |
non-matching-server-url |
If you find a validation error on Chrome JavaScript Console, Firefox Web Console, or any other equivalent tools in your browser, please reference the tables below to find explanations for the validation errors. Each table gives specific error information for the different components of CARTO.js.
Error Code |
Description |
---|---|
source-required | |
column-required | |
column-string | |
empty-column | |
filter-required | |
time-series-options-required | |
time-series-invalid-aggregation | |
time-series-invalid-offset | |
time-series-invalid-uselocaltimezone | |
histogram-options-required | |
histogram-invalid-bins | |
formula-options-required | |
formula-invalid-operation | |
category-options-required | |
category-limit-required | |
category-limit-number | |
category-limit-positive | |
category-invalid-operation | |
category-operation-required | |
category-operation-string | |
category-operation-empty |
Error Code |
---|
invalid-bounds-object |
Error Code |
---|
non-valid-source |
bad-layer-type |
non-valid-style |
source-with-different-client |
style-with-different-client |
Error Code |
---|
query-required |
query-string |
no-dataset-name |
dataset-string |
dataset-required |
Error Code |
---|
required-css |
css-string |
If you find an error on Chrome JavaScript Console, Firefox Web Console, or any other equivalent tools on your browsers (regarding platform (aka. backend services)), please reference the table below to find explanations for the error codes.
Error Code |
Description |
---|---|
over-platform-limits |
In order to guarantee the performance of those APIs for every user of the CARTO platform and prevent abuse, we have set up some general limitations and restrictions on how they work. Learn about fundamentals of [limits](/developers/fundamentals/limits/) in CARTO. |
generic-limit-error | Due to poor conectivity or a temporary error with our servers, we cannot handle your request. Please try again soon. |
CARTO.js writes error messages to window.console
if they are not caught. Please check the developer documentation for your browser in order to understand how you can check it.
If any errors occurred when loading CARTO.js, they appear as one or more lines in the console. You can check the [error codes table](#errors above to find te error in the error message. You can also find the details about the error message in the Full Reference API.
Ensure that you are using a supported browser.