Closed gddrx closed 4 years ago
No clue what this all means. It seems that the response from the miner is not in JSON.
Sorry about the last comment. Is this a new S9 or an older one ?
This is an old issue. Can you share some info here or shall I close it ?
Closing due to inactivity. Feel free to reopen
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2309, in call
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2295, in wsgi_app try: ctx.push() response = self.full_dispatch_request() except Exception as e: error = e response = self.handle_exception(e) except: error = sys.exc_info()[1] raise return response(environ, start_response) finally: File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1741, in handle_exception
if we want to repropagate the exception, we can attempt to
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2292, in wsgi_app ctx = self.request_context(environ) error = None try: try: ctx.push() response = self.full_dispatch_request() except Exception as e: error = e response = self.handle_exception(e) except: error = sys.exc_info()[1] File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1815, in full_dispatch_request request_started.send(self) rv = self.preprocess_request() if rv is None: rv = self.dispatch_request() except Exception as e: rv = self.handle_user_exception(e) return self.finalize_request(rv)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1718, in handle_user_exception return self.handle_http_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1813, in full_dispatch_request self.try_trigger_before_first_request_functions() try: request_started.send(self) rv = self.preprocess_request() if rv is None: rv = self.dispatch_request() except Exception as e: rv = self.handle_user_exception(e) return self.finalize_request(rv)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1799, in dispatch_request
request came with the OPTIONS method, reply automatically
File "/usr/local/lib/python2.7/dist-packages/flask_login/utils.py", line 261, in decorated_view return func(*args, kwargs) elif current_app.login_manager._login_disabled: return func(*args, *kwargs) elif not current_user.is_authenticated: return current_app.login_manager.unauthorized() return func(args, kwargs) return decorated_view
def fresh_login_required(func): ''' File "/home/pi/antminermon/antminermonitor/blueprints/asicminer/views/antminer.py", line 93, in miners
File "/home/pi/antminermon/lib/pycgminer.py", line 111, in get_stats return dict(output)
def get_stats(ip): cgminer = CgminerAPI(host=ip) output = cgminer.stats() output.update({"IP": ip}) return dict(output)
if name == 'main': File "/home/pi/antminermon/lib/pycgminer.py", line 90, in out
def get_summary(ip): File "/home/pi/antminermon/lib/pycgminer.py", line 62, in command return dict({'STATUS': [{'STATUS': 'error', 'description': e}]}) else:
the null byte makes json decoding unhappy
File "/usr/lib/python2.7/json/init.py", line 338, in loads
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode def decode(self, s, _w=WHITESPACE.match): """Return the Python representation of
s
(astr
orunicode
instance containing a JSON document)File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode This can be used to decode a JSON document from a string that may have extraneous data at the end.
ValueError: Invalid control character at: line 1 column 219 (char 218)