Errors
All errors thrown or returned by the zkID Wallet follow this interface:
export interface RPCErrorInterface {
code: number;
message: string;
meaning?: string;
}You can often use the error code property to determine why the invoke of API failed. Common Error Codes and their meaning include:
-32801Credential not found The Credential doesn't exist.
-32802Credential metadata error Metadata doesn't match.
-32700Parse Error An error occurred on the server while parsing the Credential JSON Text.
-32600Invalid Request The JSON sent is not a valid Request object.
-32601Method not found The method doesn't exist / is not available.
-32602Invalid params Invalid method parameters(s).
-32603Internal Error Internal JSON-RPC Error.
-32010Illegal request The User hasn't give authorization to the website, so this request is illegal.
-32001User Reject The User reject this request.
Last updated