-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search not working #21
Comments
@ottodv What version of python are you running? 2.7.??? |
Python 2.7.12 |
This error only occurs on the search page? |
Yes, that's the only situation in which I encounter this error. |
This should now be fixed in the latest version of the Explorer - if so please close the issue. |
I installed the lastest version from github as you suggested. Search still doesn't work, but in addition to the previous error, I got an additional error message in the log (on Ubuntu, strangely not on CentOS). It doesn't look very helpful, but I post it here just in case it might be to you.
|
That's an error we should have fixed - did you rerun the |
Did now (python setup.py install), but still no dice. Even restarted the VMs. I am now back to seeing only the error I quoted in my opening post, on both the Ubuntu and CentOS severs. |
OK - thanks for the update. It fixed the search redirect problem we were seeing, but there's obviously a version/configuration issue here. We'll keep working on it. |
Same error here, search still does not work. |
ping |
If you're seeing this problem please post your Python version. |
I have the same error described by @ottodv (self.status.split(' ',1)[0], self.bytes_sent)
Update: trying to run with python-3.5 i got this error:
|
python --version |
Count me in if we have to test something on my box, I can post results, versions, etc. |
Thanks, so seems very specific to Python 2.7.12/13. We'll look into it and let you know if we need any more info. |
What version do you recommend? I will try to manually change Python version until we can fix it. UPDATE: my traceback
|
I also tried it on CentOS with Python version 2.7.5. Same Error. See my earlier comment from March 29. |
We've managed to temporary solve this issue by making some small changes on Python libraries. /usr/lib/python2.7/wsgiref/simple_server.pyClass ServerHandlerclass ServerHandler(SimpleHandler):
server_software = software_version
def close(self):
try:
# if self.status is not defined, pass hardcoded status
status = "200"
if self.status:
status = self.status.split(' ', 1)[0]
self.request_handler.log_request(
status, self.bytes_sent
)
finally:
SimpleHandler.close(self) /usr/lib/python2.7/wsgiref/handles.pyClass BaseHandlermethod "finish_response"def finish_response(self):
try:
if not self.result_is_file() or not self.sendfile():
for data in self.result:
# self.write(data)
# convert data to str
self.write(str(data))
self.finish_content()
finally:
self.close() method "client_is_modern"def client_is_modern(self):
"""True if client can accept status and headers"""
# check if self.environ is defined
if not self.environ:
return False
return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9' /cc @gidgreen |
@maxidev maybe you can switch the fix to a PR? |
@reiven I can't because this was done on Python libraries instead of Multichain-explorer code. |
i found same errors. i try search by address, txid, blocknumber...,but only blocknumber is success, others will cause page crash. i installed latest explore and 100009 multichain after i modify simple_server.py & handles.py, search works correctly. But, this is finally solution? |
Search is not working for me, I keep getting the error below in the multichain-explorer log when doing a search. The error is repeated several times. I am running on Ubuntu.
The text was updated successfully, but these errors were encountered: