Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to the Developer Q&A for the
MultiChain
blockchain platform.
Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.
Related questions
RPC failed: No JSON object could be decoded
Savoir: No JSON object could be decoded
Python Savoir API "no json object could be decoded"
Failed to issue JSON-RPC request. C#
System.InvalidOperationException: Failed to issue JSON-RPC request.
4,157
questions
4,370
answers
5,718
comments
Most popular tags
multichain
streams
assets
stream
transactions
json-rpc
blockchain
wallet
permissions
error
address
raw-transactions
asset
mining
node
api
issue
multichain-explorer
nodes
connect
multichaind
multisig
transaction
smart-filters
metadata
private-key
atomic-exchange
multichain-cli
multichain-web-demo
data
connection
performance
blocks
demo
web
json
database
storage
native-currency
bitcoin
private-blockchain
network
fee
smart-contracts
wallets
signrawtransaction
off-chain
exchange
multiple-nodes
getnewaddress
RPC failed: No JSON object could be decoded
+1
vote
While executing "python -m Mce.abe --config chain1.conf" I am getting RPC failed: No JSON object could be decoded.
On the browser status = No Connection and it is showing No JSON object could be decoded.
asked
Apr 26, 2017
by
amitsh
Can you please explain which line of code is giving this error?
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
–1
vote
Looking at the other questions you posted, I think the problem is that you need to run each Explorer on the same server as the MultiChain node it communicates with, and you may not be doing this.
answered
Apr 26, 2017
by
MultiChain
When I run "python -m Mce.abe --config chain2.conf --commit-bytes 100000 --no-serve" am getting the output as below
ddl_implicit_commit=true
create_table_epilogue=''
max_varchar=4294967295
clob_type=CLOB
binary_type=buffer
int_type=str
sequence_type=update
limit_style=native
[(u'foobarbaz', u'bazfoobar')]
concat_style=ansi
Assigned chain_id 1 to MultiChain chain2
RPC failed: No JSON object could be decoded
catch_up_rpc: abort
Opened /home/kpit/.multichain/chain2/blocks/blk00000.dat
Chain 1 genesis tx: 01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff1904ffff00200104114d756c7469436861696e20636861696e32ffffffff0200000000000000002f76a9141050df1fca86653853966ee81e3546434334f17788ac1473706b703731000000000000ffffffff422a0059750000000000000000131073706b6e0200040101000104726f6f74756a00000000
block_tx 1 1
block_tx 2 2
block_tx 3 3
block_tx 4 4
block_tx 5 5
commit
After this I have executed "python -m Mce.abe --config chain1.conf".
When I open explorer in browser using https://localhost/2750 Multichain status will be "No Connection".
You're using chain1.conf and chain2.conf there - it needs to be the same one.
Hey I was using this command
python -m Mce.abe --config chain1.conf --commit-bytes 100000 --no-serve
and
python -m Mce.abe --config chain1.conf
and still getting RPC failed: No JSON object could be decoded.
Status on the browser is "No Connection"
Can you please share the full backtrace of where this error is occurring?
Following are the steps which I followed
1. Created chain1 and started it.
2. Installed MultiChain Explorer for current user.
3. Copied default-rpc-port into multichain.conf as "rpcport=port_number".
4. I copied chain1.example.conf as chain1.conf and did not change any data in that file.
5. Launched Explorer using following command
" python -m Mce.abe --config chain1.conf --commit-bytes 100000 --no-serve"
and output of this command is as follow:
ddl_implicit_commit=true
create_table_epilogue=''
max_varchar=4294967295
clob_type=CLOB
binary_type=buffer
int_type=str
sequence_type=update
limit_style=native
[(u'foobarbaz', u'bazfoobar')]
concat_style=ansi
Assigned chain_id 1 to MultiChain chain1
RPC failed: No JSON object could be decoded
catch_up_rpc: abort
Opened /home/kpit/.multichain/chain1/blocks/blk00000.dat
Chain 1 genesis tx: 01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff1904ffff00200104114d756c7469436861696e20636861696e31ffffffff0200000000000000002f76a91491d98cf711c2cb640210107872cfffffc9e6527788ac1473706b703731000000000000ffffffffc1c60a59750000000000000000131073706b6e0200040101000104726f6f74756a00000000
block_tx 1 1
block_tx 2 2
block_tx 3 3
block_tx 4 4
block_tx 5 5
block_tx 6 6
block_tx 7 7
block_tx 8 8
block_tx 9 9
block_tx 10 10
block_tx 11 11
block_tx 12 12
block_tx 13 13
commit
6. Executed "python -m Mce.abe --config chain1.conf" and when I opened "http://localhost:2750" in browser "Status" is "No Connection".
It is populating chain name from chain1.conf.
Any solution for this?
This "no connection" error is appearing in your browser?" What operating system are you using? Is the browser running on the same computer as the python script?
"No Connection" is appearing in browser.
OS = Ubuntu 14.04LTE
Browser is running on the same computer as python script.
Content of multichain.conf :
rpcuser=multichainrpc
rpcpassword=2AG1rKAfhpfgZtHNoxoGdpZ1sZUM4dQYaHabqXX6Woei
rpcport=7444
Content of chain1.conf :
# Config file for MultiChain Explorer
#
# Same file format as Abe. Please refer to Abe.conf for more
# information about the parameters shown below and other advanced options.
# Port to serve web pages
port 2750
# Who to accept connections from.
# You can only have one host entry in the config file otherwise the explorer will report an error.
# host 0.0.0.0 # to accept connections from anybody (including localhost) e.g. production
# host localhost # to only accept connections from your local machine e.g. testing
host localhost
# Configure a MultiChain network
datadir += [{
"dirname": "~/.multichain/chain1", # Path to chain's data folder
"loader": "default", # Do not change
"chain": "MultiChain chain1", # Display name in explorer
"policy": "MultiChain" # Do not change
}]
# Database type (do not change)
dbtype = sqlite3
# Filename of database
connect-args = chain1.explorer.sqlite
I can't see anything wrong there. The only way we can help with this is if you want to give us access to the server, and we can try to figure it out. If so please send the details to multichain dot debug at gmail dot com, including the directories where we will find the relevant files.
I am also facing the same problem. By any chance did you manage to solve the above problem? I have performed the same steps as mentioned above and the result is also the same. On the browser I am unable to see anything as it says "No JSON object could be decoded." Please revert.
Thanks in advance.
Facing the same problem. Did anybody solve it?
Thanks inadvance
Please
log in
or
register
to add a comment.
...