<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged 32700</title>
<link>https://www.multichain.com/qa/tag/32700</link>
<description>Powered by Question2Answer</description>
<item>
<title>RPC &quot;code&quot;:-32700 - running on Windows 8.1 / curl version 7.41.0</title>
<link>https://www.multichain.com/qa/9066/rpc-code-32700-running-on-windows-8-1-curl-version-7-41-0</link>
<description>&lt;p&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;I have started a &quot;chain0&quot; multichain. Completed many examples all running from command line (Windows 8.1). I am on machine_1 the one that started the -daemon and i can successfully connect on this from another machine_2.&lt;br&gt;The problem is when i try to use curl from machine_1. Every time the same error:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;{&quot;result&quot;:null,&quot;error&quot;:{&quot;code&quot;:-32700,&quot;message&quot;:&quot;Parse error&quot;},&quot;id&quot;:null}&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;Tried many commands:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;Example 1:&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;curl -u multichainrpc:&amp;lt;&lt;strong&gt;my_pass_here&lt;/strong&gt;&amp;gt; -d {&quot;method&quot;:&quot;getinfo&quot;,&quot;params&quot;:[],&quot;id&quot;:1,&quot;&lt;strong&gt;chain_name&lt;/strong&gt;&quot;:&quot;&lt;strong&gt;chain0&lt;/strong&gt;&quot;} -H &quot;Content-Type: text/plain;&quot; -X POST http://127.0.0.1:9710&lt;/span&gt;

&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;Example 2:&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;curl -u multichainrpc:&amp;lt;&lt;strong&gt;my_pass_here&lt;/strong&gt;&amp;gt; -d {&quot;method&quot;:&quot;getinfo&quot;,&quot;params&quot;:[],&quot;id&quot;:1,&quot;&lt;strong&gt;jsonrpc&lt;/strong&gt;&quot;:&quot;&lt;strong&gt;1.0&lt;/strong&gt;&quot;} -H &quot;Content-Type: text/plain;&quot; -X POST http://127.0.0.1:9710&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;Example 3:&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;curl -u multichainrpc:&amp;lt;&lt;strong&gt;my_pass_here&lt;/strong&gt;&amp;gt; -d &lt;strong&gt;'&lt;/strong&gt;{&quot;method&quot;:&quot;getinfo&quot;,&quot;params&quot;:[],&quot;id&quot;:1,&quot;jsonrpc&quot;:&quot;1.0&quot;}&lt;strong&gt;'&lt;/strong&gt; -H &quot;Content-Type: text/plain;&quot; -X POST http://127.0.0.1:9710&lt;/span&gt;

&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;And many more. &lt;/span&gt;

&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;Inside folder:&lt;/span&gt;
C:\Users\&amp;lt;&lt;strong&gt;user_name&lt;/strong&gt;&amp;gt;\AppData\Roaming\MultiChain
&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;i have multichain.conf file and inside that file i have the &lt;strong&gt;rpcpassword&lt;/strong&gt; property set.
&lt;/span&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;As stated here in another message i have already used the help getinfo command.&lt;/span&gt;
&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;Trace in case that helps:&lt;/span&gt;
&lt;/pre&gt;&lt;pre&gt;&amp;gt; curl -u multichainrpc:&amp;lt;&lt;strong&gt;password_here&lt;/strong&gt;&amp;gt; -d {&quot;method&quot;:&quot;getinfo&quot;,&quot;params&quot;:[],&quot;id&quot;:1,&quot;jsonrpc&quot;:&quot;1.0&quot;} -H &quot;Content-Type: text/plain;&quot; -X POST http://127.0.0.1:9710 -vvvv
* Rebuilt URL to: http://127.0.0.1:9710/
*&amp;nbsp; &amp;nbsp;Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 9710 (#0)
* Server auth using Basic with user 'multichainrpc'
&amp;gt; POST / HTTP/1.1
&amp;gt; Authorization: Basic bXVsdGljaGFpbnJwYzpHTDhVS3E1N0JMRE5iOVV3SG5HVXl1VXR6UEdkZVc4aEZpTFlmOXlTcG12dA==
&amp;gt; User-Agent: curl/7.41.0
&amp;gt; Host: 127.0.0.1:9710
&amp;gt; Accept: */*
&amp;gt; Content-Type: text/plain;
&amp;gt; Content-Length: 43
&amp;gt;
* upload completely sent off: 43 out of 43 bytes
&amp;lt; HTTP/1.1 500 Internal Server Error
&amp;lt; Date: Fri, 23 Mar 2018 14:04:11 +0000
&amp;lt; Connection: close
&amp;lt; Content-Length: 74
&amp;lt; Content-Type: application/json
&amp;lt; Server: bitcoin-json-rpc/v0.10.0.0-unk
&amp;lt;
{&quot;result&quot;:null,&quot;error&quot;:{&quot;code&quot;:-32700,&quot;message&quot;:&quot;Parse error&quot;},&quot;id&quot;:null}
* Closing connection 0
&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif&quot;&gt;Maybe i have misunderstood a lot, i am new to blockchain. &lt;/span&gt;
&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;What i try to do is test it with curl and then create a java app in order to call it.&lt;/span&gt;&lt;/pre&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/9066/rpc-code-32700-running-on-windows-8-1-curl-version-7-41-0</guid>
<pubDate>Fri, 23 Mar 2018 14:09:45 +0000</pubDate>
</item>
</channel>
</rss>