Author Topic: How to retrieve the Network Node API using the Login API?  (Read 1179 times)

0 Members and 1 Guest are viewing this topic.


Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: 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

  • Guest
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?