BitShares Forum

Main => Technical Support => Topic started by: jakub on January 22, 2016, 09:47:45 pm

Title: How to retrieve the Network Node API using the Login API?
Post by: jakub on January 22, 2016, 09:47:45 pm
I'm playing with the Login API as described here:
http://docs.bitshares.eu/api/login.html

When apply this API call in wscat:
Code: [Select]
> {"id":888,"method":"call","params":[1,"network_broadcast",[]]}
it works fine.

But when I try this:
Code: [Select]
> {"id":888,"method":"call","params":[1,"network_node",[]]}
I get this error:
Code: [Select]
< {"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?
Title: Re: How to retrieve the Network Node API using the Login API?
Post by: xeroc on January 23, 2016, 11:35:28 am
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
Title: Re: How to retrieve the Network Node API using the Login API?
Post by: jakub on January 23, 2016, 09:49:36 pm
I've posted this issue on github:
https://github.com/cryptonomex/graphene/issues/534