error in search

+1 vote
Traceback (most recent call last):
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/home/ubuntu/multichain-explorer/Mce/abe.py", line 332, in __call__
    return redirect(page)
  File "/home/ubuntu/multichain-explorer/Mce/abe.py", line 4027, in redirect
    ('Content-Type', 'text/html')])
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 180, in start_response
    assert type(val) is StringType,"Header values must be strings"
AssertionError: Header values must be strings
177.133.187.151 - - [02/Mar/2017 18:24:44] "GET /search?q=1Wps2XRwoaHXChZy1Fg5aUA9gZoZMroX8det3Q HTTP/1.1" 500 59
asked Mar 2, 2017 by rafaelwdornelas
We'll look into this - thanks.
I keep the same error without a solution
We're working on it...

2 Answers

0 votes

@rafaelwdornelas What version of Python are you running?  I can't reproduce this on 2.7.12.  I think this is environmental as users did not have problems before and this issue has only recently started appearing.  The built-in http server code has not changed.  Maybe there is an issue with 2.7.13 or some other libraries?

To help debug this, in Mce/abe.py add a "print page" above this bit of code, around line 273:

if abe.fix_path_info(env):
    abe.log.debug("fixed path_info")
    return redirect(page)
answered Mar 28, 2017 by simon
edited Mar 28, 2017 by simon
0 votes
This should now be fixed in the latest version of the Explorer - please confirm if that's the case.
answered Mar 29, 2017 by MultiChain
...