BitShares Forum

Main => Technical Support => Topic started by: monsterer on November 28, 2014, 11:35:14 am

Title: Anyone managed to get the JSON RPC server to respond? (not HTTP one)
Post by: monsterer on November 28, 2014, 11:35:14 am
I have tried everything, but all I get is a gateway timeout error trying to authenticate with the JSON RPC API server. The HTTP one works, but not the JSON one.

Any example of this working?
Title: Re: Anyone managed to get the JSON RPC server to respond? (not HTTP one)
Post by: bytemaster on November 28, 2014, 02:00:46 pm
Http gives you json rpc at URL.  /rpc. 

The rpc port is raw tcp with pure json.  No http headers. 
Title: Re: Anyone managed to get the JSON RPC server to respond? (not HTTP one)
Post by: monsterer on November 28, 2014, 02:42:12 pm
Http gives you json rpc at URL.  /rpc. 

The rpc port is raw tcp with pure json.  No http headers.

As in socketed TCP?
Title: Re: Anyone managed to get the JSON RPC server to respond? (not HTTP one)
Post by: bytemaster on November 28, 2014, 02:51:11 pm
Http gives you json rpc at URL.  /rpc. 

The rpc port is raw tcp with pure json.  No http headers.

As in socketed TCP?

Yes. 

Open up "telnet" and type in  "{"id":1,"method":"get_info","params":[]}"  and it should produce a result.
Title: Re: Anyone managed to get the JSON RPC server to respond? (not HTTP one)
Post by: monsterer on November 30, 2014, 12:20:51 pm
Yes. 

Open up "telnet" and type in  "{"id":1,"method":"get_info","params":[]}"  and it should produce a result.

Is it a persistent connection? Any server-side push operations, like block notification?
Title: Re: Anyone managed to get the JSON RPC server to respond? (not HTTP one)
Post by: jsidhu on November 30, 2014, 04:46:43 pm
How do u authinticate? Or do u need to?
Title: Re: Anyone managed to get the JSON RPC server to respond? (not HTTP one)
Post by: bytemaster on December 02, 2014, 08:48:19 pm
How do u authinticate? Or do u need to?

You authenticate by making a JSON RPC call to authenticate as the first step.