<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged http</title>
<link>https://www.multichain.com/qa/tag/http</link>
<description>Powered by Question2Answer</description>
<item>
<title>Sporadically receiving connection error when doing JSON RPC requests</title>
<link>https://www.multichain.com/qa/16305/sporadically-receiving-connection-error-when-doing-requests</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
I made a web application which sends JSON RPC requests to a multichain node on the same server (localhost), the requests work correctly most of the time, except that in about 4% of the cases the request fails and the only error I have available is what the standard .net webrequest library tells me: &amp;nbsp;&amp;quot;Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.&amp;quot; which should mean that for some reason multichain is closing down the connection while in the process of sending back a response.&lt;br /&gt;
&lt;br /&gt;
I've been trying to debug this for a while without success, it may happen with any JSON RPC request and generally happens when there a bunch of requests in a short time (right now I'm doing tests with 1 second delay and it happens around the tenth consecutive request).&lt;br /&gt;
&lt;br /&gt;
I don't know what's happening and how to debug it since it seems to be a problem on the side of multichain and one that happens only a small percentage of the time.&lt;br /&gt;
&lt;br /&gt;
I tested on multichain community 2.0.3 but I had this happen even on 2.0.2.&lt;br /&gt;
&lt;br /&gt;
What can I do to further investigate this situation?&lt;br /&gt;
Any idea on why it could be happening?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/16305/sporadically-receiving-connection-error-when-doing-requests</guid>
<pubDate>Wed, 23 Oct 2019 15:42:10 +0000</pubDate>
</item>
<item>
<title>Documentation/Example sending JSON-RPC requests</title>
<link>https://www.multichain.com/qa/14113/documentation-example-sending-json-rpc-requests</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
is there a documenation or example on how to send JSON-RPC requests to multichain?&lt;br /&gt;
&lt;br /&gt;
Basically, the idea is to use JSON-RPC over HTTP instead of the multichain-cli.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/14113/documentation-example-sending-json-rpc-requests</guid>
<pubDate>Tue, 21 May 2019 21:18:20 +0000</pubDate>
</item>
<item>
<title>Web Demo Error: HTTP 0</title>
<link>https://www.multichain.com/qa/9343/web-demo-error-http-0</link>
<description>Hi all,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Im trying to connect the webdemo to my main node. I currenty have the following config:&lt;br /&gt;
&lt;br /&gt;
default.name=Default &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
default.rpchost=10.51.120.68 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
default.rpcport=4252 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
default.rpcuser=multichainrpc &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
default.rpcpassword=xxx&lt;br /&gt;
default.rpcallowip=10.51.120.86&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
When I start the node it says connect to multichaind chain1@10.51.120.86:4253&lt;br /&gt;
&lt;br /&gt;
Params.dat mentions 4252 as default rpc port.&lt;br /&gt;
&lt;br /&gt;
But Im still getting the error when statrting the web demo and I cant find and logs or clearer issues.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Is it also correct that every time that I start the node the ip of the node changes? Does that mean I have the reconnect every node every time I start it again? That doesnt seem likely.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Can anyone help me fix this issue?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Thanks!</description>
<guid isPermaLink="true">https://www.multichain.com/qa/9343/web-demo-error-http-0</guid>
<pubDate>Tue, 17 Apr 2018 12:55:26 +0000</pubDate>
</item>
<item>
<title>Error: HTTP 0 on my local server</title>
<link>https://www.multichain.com/qa/8007/error-http-0-on-my-local-server</link>
<description>how can I solve &amp;nbsp;Error: HTTP 0 &amp;nbsp;on my local Different-2. it is running on local machine.&lt;br /&gt;
&lt;br /&gt;
my config.txt &amp;nbsp;looking like that.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
default.rpchost=127.0.0.1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# IP address of MultiChain node&lt;br /&gt;
default.rpcport=4782 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# usually default-rpc-port from params.dat&lt;br /&gt;
default.rpcuser=multichainrpc &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# username for RPC from multichain.conf&lt;br /&gt;
default.rpcpassword=3xD5RuCuzu7ySMcwcp1nD7e9ddRf3oe7sFYwbsBTEtVg &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# password for RPC from multichain.conf&lt;br /&gt;
&lt;br /&gt;
another.name=blockchain&lt;br /&gt;
another.rpchost=192.168.2.23&lt;br /&gt;
another.rpcport=8385&lt;br /&gt;
another.rpcuser=multichainrpc &lt;br /&gt;
another.rpcpassword=7gBiqCpv6cFy5QM51EDkZq5FVJ6b3PGUXCdak2L6zBXq&lt;br /&gt;
&lt;br /&gt;
its running only &amp;nbsp;system. &lt;br /&gt;
&lt;br /&gt;
how can i run it for another server</description>
<guid isPermaLink="true">https://www.multichain.com/qa/8007/error-http-0-on-my-local-server</guid>
<pubDate>Wed, 27 Dec 2017 11:36:11 +0000</pubDate>
</item>
<item>
<title>Can  I access multichain using REST calls?</title>
<link>https://www.multichain.com/qa/5077/can-i-access-multichain-using-rest-calls</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have an application written in Java.&lt;br /&gt;
&lt;br /&gt;
I want to connect with multichain using REST (HTTP) calls. Is this possible? &lt;br /&gt;
&lt;br /&gt;
If yes, please share the tutorial link.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
&lt;br /&gt;
Anuj</description>
<guid isPermaLink="true">https://www.multichain.com/qa/5077/can-i-access-multichain-using-rest-calls</guid>
<pubDate>Wed, 17 May 2017 18:06:46 +0000</pubDate>
</item>
<item>
<title>API no longer responds after 3 to 5 requests - Bug</title>
<link>https://www.multichain.com/qa/4909/api-no-longer-responds-after-3-to-5-requests-bug</link>
<description>Hi Multichain team,&lt;br /&gt;
&lt;br /&gt;
I think I just found a problem with the JSON RPC API.&lt;br /&gt;
&lt;br /&gt;
I set up a Multichain in Docker with two nodes, I'm working on a project where I need to make some call to the API, the purpose is to perform operations on the chain. I noticed that after 3 to 5 calls (mostly 5), my application just freezes.&lt;br /&gt;
&lt;br /&gt;
I tried with different calls (publishfrom, getmultibalances, even getinfo) and the problem stay the same.&lt;br /&gt;
&lt;br /&gt;
To make it clear, I think it comes from the fact that clients keep the TCP connection open and there is no way to establish further connections. &lt;br /&gt;
&lt;br /&gt;
When it happens, everything is frozen, no more response from multichain-cli, no more access to web demo or anything.&lt;br /&gt;
&lt;br /&gt;
Can you help me about this ? Thank you&lt;br /&gt;
&lt;br /&gt;
(I have a small console application available to reproduce the bug if you want)</description>
<guid isPermaLink="true">https://www.multichain.com/qa/4909/api-no-longer-responds-after-3-to-5-requests-bug</guid>
<pubDate>Thu, 27 Apr 2017 14:55:21 +0000</pubDate>
</item>
<item>
<title>Multichain Demo - Error: HTTP 0</title>
<link>https://www.multichain.com/qa/3408/multichain-demo-error-http-0</link>
<description>&lt;p&gt;Here is my testing site:&amp;nbsp;&lt;a href=&quot;http://chain.manjago.com/demo/&quot; rel=&quot;nofollow&quot;&gt;http://chain.manjago.com/demo/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Below is my config.txt for Multichain Demo&lt;/span&gt;&lt;/p&gt;&lt;p&gt;default.name=Default &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # name to display in the web interface&lt;br&gt;default.rpchost=172.31.11.xxx &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # IP address of MultiChain node&lt;br&gt;default.rpcport=4799 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # see rpc-port from chain parameters&lt;br&gt;default.rpcuser=multichainrpc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# username for RPC from multichain.conf&lt;br&gt;default.rpcpassword=xxxxxxxxxxxx &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# password for RPC from multichain.conf&lt;/p&gt;&lt;p&gt;# You can configure support for other nodes using a word other than 'default':&lt;br&gt;#&lt;br&gt;backup.name=Backup &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # name to display in the web interface&lt;br&gt;backup.rpchost=172.31.13.xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# IP address of MultiChain node&lt;br&gt;backup.rpcport=4799 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # see rpc-port from chain parameters&lt;br&gt;backup.rpcuser=multichainrpc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# username for RPC from multichain.conf&lt;br&gt;backup.rpcpassword=xxxxxxxxxxxx &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# password for RPC from multichain.conf&lt;/p&gt;&lt;p&gt;I have changed the multichain.conf on ./multichain/chain3 to the following&lt;/p&gt;&lt;p&gt;rpcuser=multichainrpc&lt;br&gt;rpcpassword=xxxxxxxxxxxx&lt;br&gt;rpcallowip=172.31.18.xx (Private IP address of the Web Server)&lt;/p&gt;&lt;p&gt;I have no idea why it is not working...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/3408/multichain-demo-error-http-0</guid>
<pubDate>Tue, 20 Dec 2016 03:04:28 +0000</pubDate>
</item>
<item>
<title>sample for json rpc</title>
<link>https://www.multichain.com/qa/424/sample-for-json-rpc</link>
<description>hello,&lt;br /&gt;
&lt;br /&gt;
can someone pls provide a sample to use the json-rpc thro http, a curl would be best, i am not sure whats the http port and where to find it in the configuration file&lt;br /&gt;
&lt;br /&gt;
for eg, I am hoping there is some thing like &lt;br /&gt;
&lt;br /&gt;
&amp;gt; curl -v &amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;path&amp;gt; -H 'Content-Type: application/json' -d '{&amp;quot;method&amp;quot;:&amp;quot;getinfo&amp;quot;}'&lt;br /&gt;
&lt;br /&gt;
but i am not sure about what the default values are, &lt;br /&gt;
&lt;br /&gt;
Thanks</description>
<guid isPermaLink="true">https://www.multichain.com/qa/424/sample-for-json-rpc</guid>
<pubDate>Wed, 11 Nov 2015 17:42:38 +0000</pubDate>
</item>
</channel>
</rss>