How to retrieve the Network Node API using the Login API?

Started by jakub, January 22, 2016, 09:47:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


xeroc

I noticed that for the "network_node" api too .. but I am very sure that this hasn't happend some time ago since the status page used that very same node_api.
Not sure what is going up or what caused this issue .. mayb you could add a ticket to the graphene repo

jakub

I'm playing with the Login API as described here:
http://docs.bitshares.eu/api/login.html

When apply this API call in wscat:

> {"id":888,"method":"call","params":[1,"network_broadcast",[]]}

it works fine.

But when I try this:

> {"id":888,"method":"call","params":[1,"network_node",[]]}

I get this error:

< {"id":888,"error":{"code":1,"message":"10 assert_exception: Assert Exception\n_network_node_api: \n    {}\n    th_a  api.cpp:184 graphene::app::login_api::network_node","data":{"cod
e":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"api.cpp","line":184,"method":"graphene::app::login_api::network_node","hostna
me":"","thread_name":"th_a","timestamp":"2016-01-22T18:59:57"},"format":"_network_node_api: ","data":{}}]}}}


What am I doing wrong?