I get eoferror when http request is this the write way to communicate?

+2 votes
Thanks for your response , I've already seen this library but i don't want you use it because i want a custom solution.  My code is similar to the code of the library but I get EOFError (end of file reached) when i send the http request .Maybe the response is causing the error . I want to know if my code is a wright approach to communicating with my chain ,so that i cant change the code if is wrong or to change some multichain parameters if thats the problem.Thank you.
related to an answer for: rcp in ruby on rails
asked Dec 5, 2019 by anonymous

1 Answer

0 votes
Yes, you do need to use HTTP to connect to the node's API. It uses a standard JSON-RPC connection mechanism. I do not know why you are receiving EOFError but any regular JSON-RPC library might be the easiest way to connect to the node, if you don't want to use that library we already linked.
answered Dec 8, 2019 by MultiChain
...