kube-ops-view icon indicating copy to clipboard operation
kube-ops-view copied to clipboard

kube-ops-view not working at all due to mixed python errors

Open Aracki opened this issue 6 years ago • 0 comments

The error I am getting when trying to connect locally (Docker for Mac):

  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 662, in handle_one_request
    if not self.read_request(self.requestline):
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 531, in read_request
    raise _InvalidClientRequest('Invalid HTTP method: %r' % (raw_requestline,))
gevent.pywsgi._InvalidClientRequest: Invalid HTTP method: '\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03ª´\x81ïM\x95¿\x1fÑ\xadS_\x8bYƶ\x88ìà´g%U-´.\x1bú!\x1a¸\x80 EAÑ\x97ßÊ\x04*µ)T`CI\x97\r\x07¶\\\x85lU\x91\x0e\x05z\x1fF;\x171é\x00"ªª\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 565, in log_error
    message = msg % args
TypeError: not enough arguments for format string
<gevent._socket3.socket object, fd=7, family=2, type=1, proto=0>: 'Invalid HTTP method:

The error I'm getting when deploy it to the cluster:

ERROR:kube_ops_view.update:Failed to query cluster <IP>:443 (<IP>): 403 Forbidden (try 3, wait 18 seconds)
<gevent._socket3.socket object, fd=9, family=2, type=1, proto=0>: Invalid HTTP method: '\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03\x8ce§&çÁIdÌ\x03\x17W\x02>\x99\x8d4$@ýÒZ»\x88oXÒo±¹JÏ \n'
127.0.0.1 - - [2019-10-12 20:45:14] "üŒe§&çÁIdÌW>™4$@ýÒZ»ˆoXÒo±¹JÏ" 400 - 0.021306
<gevent._socket3.socket object, fd=9, family=2, type=1, proto=0>: Invalid http version: '\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03öT\x06t\x07åäQs2\x96\x8d\x05® Ð\x11\x98*Ï\x93,Ênó\x91q½\x88Çg} ¤\x01s£C§ºnu^÷\x92gqÍD\x8eOKÆ46\\\x90G¡í¸ÞâGÙ\x00"ÚÚ\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00\n'
127.0.0.1 - - [2019-10-12 20:45:15] "üöTtåäQs2–® И*ϓ,Ênó‘q½ˆÇg} ¤s£C§ºnu^÷’gqÍDŽOKÆ46\G¡í¸ÞâGÙ"ÚÚÀ+À/À,À0̨̩ÀÀœ/5" 400 - 0.039973
100.122.224.0 - - [2019-10-12 20:45:18] "GET /health HTTP/1.1" 200 117 0.000525
<gevent._socket3.socket object, fd=9, family=2, type=1, proto=0>: Invalid http version: '\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03+¨\x02\x17\x03pÇaMañé\x9cÞe\x10\x14¢Ã»\x0cIh¼/\x8f³»·t»ù \x08¼\x86øl?\x9aóàÿ¶\x8eõ?|0¯àî\x9c\x94\x95}!?¨ËÂYäTÓ\x00"**\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00\n'
127.0.0.1 - - [2019-10-12 20:45:19] "ü+¨pÇaMañéœÞe¢Ã»
                                                     Ih¼/³»·t»ù¼†øl?šóàÿ¶Žõ?|0¯à•}!?¨ËÂYäTÓ"**À+À/À,À0̨̩ÀÀœ/5" 400 - 0.052321
<gevent._socket3.socket object, fd=9, family=2, type=1, proto=0>: Expected GET method: '\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03\x12ÛIùôé-9)\x05³\x94$g&\x13·{\x11L\x06\x02\x9b<\x19\x16ÿóòY?² Na;þ-Çxä¢ûßVü®y¢Eyå\x8dx\x87jj-ù\x17\x86\x94bì`\x00"JJ\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00\n'
127.0.0.1 - - [2019-10-12 20:45:22] "üÛIùôé-9)³”$g&·{L›<ÿóòY?² Na;þ-Çxä¢ûßVü®y¢Eyåx‡jj-ù†”bì`"JJÀ+À/À,À0̨̩ÀÀœ/5" 400 - 0.000119
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 662, in handle_one_request
    if not self.read_request(self.requestline):
  File "/usr/local/lib/python3.7/site-packages/gevent/pywsgi.py", line 531, in read_request
    raise _InvalidClientRequest('Invalid HTTP method: %r' % (raw_requestline,))

Aracki avatar Oct 12 '19 20:10 Aracki