Standard errors
We hope you are not going to see too many error responses but in case you do, it's good to know what they mean.
You can use this page as a refference when you need it.
Errors
Code | Message | Description |
---|---|---|
-32700 | Parse error | Error parsing json data |
-32603 | Server error | Unexpected error on the server |
-32602 | Invalid params | Failed to validate parameters |
-32601 | Method not found | Method with the provided name is not fond in the collection |
-32600 | Invalid request | Request does not follow JSON-RPC schema |
0 | APIBlocks Exception | Generic exception raise by APIBlcoks |
1 | Internal tool error | An error raise by running a third-party library |
2 | AuthenticationError | An error authenticating a user |
Internal tool error
Sometimes the third-party libraries that APIBlocks uses will thow errors that we didn't expect. In this case you will receive an Internal tool error
.
The data
field of the Internal tool error
has a standard schema. See an example response below:
{
"jsonrpc": "2.0",
"id": "15ab1a33-2991-4992-9eda-dca939f99709",
"result": {
"dna": {
"seq": "TGGCTTACGAGCTAC"
}
},
"error": {
"code": 1,
"message": "Internal tool error",
"data": {
"method": "ThirdPartyClass.optimize",
"exception": "Optimisation failed to converge"
}
}
}
- method
-
Shows which third-party method raised an error.
- exception
-
Contains exception message that the tool has raised.