GithubHelp home page GithubHelp logo

multichain / multichain-explorer-2 Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 15.0 458 KB

MultiChain Explorer 2. Requires MultiChain 2.2 beta 3+.

License: BSD 3-Clause "New" or "Revised" License

Python 97.56% JavaScript 0.05% CSS 2.39%

multichain-explorer-2's Issues

no connection

Dears,

I have downloaded and started the explorer 2, I had python 3.9.5 , it gave me hard time with errors, so I downgraded to python 3.7.9 and the explorer is working but with this error when I try to connect to chain1 and chain2


Exception happened during processing of request from ('192.168.8.102', 10142)
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\socketserver.py", line 316, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Program Files\Python37\lib\socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
File "C:\Program Files\Python37\lib\socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Program Files\Python37\lib\socketserver.py", line 720, in init
self.handle()
File "C:\Program Files\Python37\lib\http\server.py", line 426, in handle
self.handle_one_request()
File "C:\Program Files\Python37\lib\http\server.py", line 414, in handle_one_request
method()
File "C:\Users\Amer\Downloads\multichain-explorer-2-master\multichain-explorer-2-master\multichain-explorer-2\server.py", line 89, in do_GET
content=self.handler(self.chain,self.params,self.nparams)
File "C:\Users\Amer\Downloads\multichain-explorer-2-master\multichain-explorer-2-master\multichain-explorer-2\data.py", line 584, in handle_chains
native_flag=self.chain_native_flag(chain,response)
File "C:\Users\Amer\Downloads\multichain-explorer-2-master\multichain-explorer-2-master\multichain-explorer-2\data.py", line 539, in chain_native_flag
return chain.config['native-flag']
KeyError: 'native-flag'

the browser hangs for a while and gives no connection in the state of connection, and I tried to revise everything from the config.ini to the node it self, I have chain1 and chain2 on the same server, I run only one instance at a time, this is for testing purposes as I'm new to multichain

KeyError: 'count'

First, let me say that multichain is awesome. I just started using explorer-2 today and noticed an issue.

When I click on the Asset number in the summary (http://147.182.214.238:4444/base_chain/assets), I get this error on the console:

base_chain: ----------------------------------------
Exception occurred during processing of request from ('68.206.160.142', 1600)
Traceback (most recent call last):
File "/usr/lib/python3.10/socketserver.py", line 316, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.10/socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.10/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.10/socketserver.py", line 747, in init
self.handle()
File "/usr/lib/python3.10/http/server.py", line 432, in handle
self.handle_one_request()
File "/usr/lib/python3.10/http/server.py", line 420, in handle_one_request
method()
File "/root/.multichain/base_chain/multichain-explorer-2/server.py", line 94, in do_GET
content=self.handler(self.chain,self.params,self.nparams)
File "/root/.multichain/base_chain/multichain-explorer-2/data.py", line 1168, in handle_assets
response=chain.request("listassets",['*', False, nparams['count'], nparams['start']])
KeyError: 'count'

The webpage stays stuck on loading.

UnboundLocalError for txid

Hi,

We are seeing multiple instances of the following message in our logs:

File "/root/multichain-explorer-2/data.py", line 1778, in handle_keyitems

return self.do_streamitems(chain,params,nparams,params[0],None,None,parse.unquote_plus(str(params[1])))

File "/root/multichain-explorer-2/data.py", line 1935, in do_streamitems

tx_html='<a href="' + chain.config['path-name'] + '/transaction/' + txid + '">' + txid[0:10]+ '...</a>'

UnboundLocalError: local variable 'txid' referenced before assignment

which appears to be from here but the transaction id is not null, can you please advise?

Fails with Python 3.8.x

When running under Python 3.8.x the following error occurs:
ImportError: cannot import name 'escape' from 'cgi'

Solution: Replace
from cgi import escape
with
from html import escape
in data.py and server.py

Multichain-Explorer-2 Status No Connection

I have configured a blockchain by the name amazonchain on two AWS EC2 instances.
I can use Multichain-Webdemo as shown in the attached pdf file. Meaning my chain is up and running.
When I use Multichain-Explorer, I get Status No Connection and Multichain is not running messages on the page. See the attached pdf.
I have all the rpcuser, password, port, public ip address all set right. That's partly why Webdemo is working.
Can someone please throw some light why Explorer is giving me status no connection message?
Thank you
Explorer Not Connected.pdf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.