JsonRpcServer errInternalError -32603

General discussion of CryptoNote based currencies and issues.

JsonRpcServer errInternalError -32603

Postby DATAFLEX » Mon May 02, 2016 11:58 am

I creating my interface webservice to get access to dinastycoin blockchain the new cryptonote based currency I created and that soon I will submit to you... just want to finish all steps and test and grow the comunity before.

As you can see here https://dataflex.it/dinastyoffreedom/dinastycoin.wso the function ReadLastBlockHeader work and return all informations using getlastblockheader call

Code: Select all
 "getlastblockheader", { makeMemberMethod(&RpcServer::on_get_last_block_header), false } },

the other 2 functions I trying now report one error: jsonValue type is not Array or Object . the method name is correct and also the input I creating is correct for example
Code: Select all
 ( '{"jsonrpc" : "2.0", "id" : "MyIdCode", "method" : "on_getblockhash"}, "params" :{"height" :1234 } ')     

but I receve the error in this line
Code: Select all
size_t JsonValue::size() const {
  switch (type) {
  case ARRAY:
    return reinterpret_cast<const Array*>(valueArray)->size();
  case OBJECT:
    return reinterpret_cast<const Object*>(valueObject)->size();
    throw std::runtime_error("JsonValue type is not ARRAY or OBJECT");

I using last version 1.1 Cryptonote sources . I suppose there is a bug in the Cryptonote sources code
You can checkout my webservice I creating, so you will see that my function ReadLastBlockHeader it work right... while the others 2 report the above errror...

here my web service url:
Franco Spinella
User avatar
Posts: 26
Joined: Fri Nov 20, 2015 5:00 pm
Location: italy

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest