Dealing with Errors
This page is still under construction
<ReportError>β
If a piece has a questionable scan, itβs possible to report an error to us. This will upload the previous scanβs data to our cloud (including your calibration) where we can investigate what may have happened. Such cases can also be added to our regressions to better ensure accuracy in future versions. When using this reporting tool, we ask you to measure the cargo by an alternative method and then provide us with the measured: Length, Width, and Height (using the unit of measurement that your Cargo Spectre is set to).
Requestβ
Request report an error at a machine that has recently with local IP address 10.1.1.2
set to port 7100
.
- GET
- POST
Endpointβ
Headerβ
- XML
- JSON
Desired response format:
Accept: application/xml
(DEFAULT)Desired response format:
Accept: application/json
Endpointβ
Headerβ
- XML
- JSON
Desired response format:
Accept: application/xml
(DEFAULT)Desired response format:
Accept: application/json
Bodyβ
- XML
- JSON
<Requests>
<ReportError>
<Length>30.0</Length>
<Width>20.0</Width>
<Height>40</Height>
</ReportError>
</Requests>
{
"Requests":{
"ReportError":{
"Length": 30.0,
"Width": 20.0,
"Height": 40
}
}
}
Responseβ
- XML
- JSON
<Responses>
<ReportError code="0"/>
</Responses>
{
"Responses": {
"ReportError": {
"code": "0"
}
}
}
<GetErrorStatus>β
This returns the last status code set by the Cargo Spectre server, whether error or success.
Requestβ
Receive last status code of machine with local IP address 10.1.1.2
set to port 7100
.
- GET
- POST
Responseβ
- XML
- JSON
<Responses>
<GetErrorStatus code="0"/>
</Responses>
{
"Responses": {
"GetErrorStatus": {
"code": "0"
}
}
}
Errors on API Commandsβ
The "code" parameter on each API responses signifies whether the command executed successfully or not. It is present on each and every command that was sent, even if they are combined into one request.
Example:
- XML
- JSON
<Responses>
<Ping code="0"/>
<Dimension code="DIM_NO_OBJECT" description="No object detected when scanning."/>
</Responses>
{
"Responses": {
"Ping": {
"code": "0",
"value": ""
},
"Dimension": {
"code": "DIM_NO_OBJECT",
"description": "No object detected when scanning."
}
}
}
Successful commands show a code of "0". If an error occurs, it will typically include a code that is not "0" and a description with a human-readable message.
Below are potential error codes and what they signify.
List of Error Codesβ
This list contains all user-facing error codes that can be returned by the Cargo Spectre API for a device on software version 3.6.
Error Code | Description | Fix |
---|---|---|
LIC_DECRYPTION_ERROR | The licensing server was unable to verify that the credentials were not modified in transit. | This is an uncommon error. Please contact Cargo Spectre support to investigate. |
LIC_LOGIN_FAILURE | The licensing server rejected the login credentials. | Check that the username and password are correct. |
LIC_NETWORK_ERROR | Couldn't connect to licensing server over the network. | Check that the device is connected to the internet and that the connection is not being blocked by a firewall setting. |
LIC_NO_AVAILABLE_LICENSES | All licenses have been checked out. | Contact your Cargo Spectre sales representative to purchase more licenses. |
LIC_VERSION_OUT_OF_DATE | The device's software is out of date. | Run spectre-update to update the device's software to the latest version. |
LIC_UNKNOWN_ERROR | General issue with license checkout. | This indicates trouble connecting to the licensing server. Follow the steps for LIC_NETWORK_ERROR . If it persists, contact Cargo Spectre support. |
CAL_FILE_NOT_FOUND | Issue reading files from calibration. | The previous calibration file may have been moved or deleted. Re-running calibration will fix this. |
CAL_FLOOR_NOT_FOUND | Couldn't find the floor during calibration. | Make sure the floor is visible to all cameras and retry calibration. |
CAL_REFS_NOT_FOUND | Couldn't find calibration objects. | Rearrange the calibration objects so that they are visible to all cameras and retry calibration. |
CAL_GENERAL | Unknown calibration phase detected. | This is an uncommon error. Please contact Cargo Spectre support to investigate. |
DIM_NULL | Not enough sensors connected for the specified mode. | Make sure all sensors are connected. It is also possible that someone accidentally changed the scanning mode to one that requires additional sensors. |
DIM_UNCALIBRATED | Device is not calibrated - cannot scan. | Complete the calibration process before attempting to scan again. |
DIM_CLIPPED_POINTS | Object is partially out of view when scanning. | Move the object to the center of the dimensioner and scan again. If the object is already in the center, it may be bigger than the maxium certified volume and may need to be dimensioned manually instead. |
DIM_NO_OBJECT | No object detected when scanning. | Place an object on the scale and try dimensioning again. |
DIM_NO_CAMS | Issue with getting data from cameras when calibrating. | Check if any cameras are disconnected. |
API_UNKNOWN | API command was not recognized. | Check if there is a typo in the command. If not, contact Cargo Spectre support. |
API_BAD_PARAMETER | Error parsing an API parameter or its input. | Check if there is a typo in the command. If not, contact Cargo Spectre support. |
WU_FAILED | Deals with failures to upload to the Cloud. | Check that the device has a reliable internet connection and try again. |
WU_NOT_INITIATED | Upload to the Cloud failed because the data was already uploaded previously. | This scan may already be in the Cloud. If that is not the case, check if the setting for "upload when saving" is enabled. |
GENERAL | Other unknown errors are handled here. | This is a very uncommon error. Contact Cargo Spectre support if you encounter it. |