Closed time-river closed 6 years ago
Hi!
Please, provide as much details as you can to reproduce this issue. What is the host OS? Kimchi, Wok, cherrypy and novnc versions?
work well: host OS: openSUSE Leap_42.1 Kimchi: 2.5.0(the last release) Wok: 2.5.0 (the last release) CherryPy: current master——1b979c3 Novnc: 0.5.1
work bad: host OS: openSUSE Tumbleweed Kimchi: 2.5.0(the last release) Wok: 2.5.0 (the last release) CherryPy: current master——1b979c3 Novnc: 0.6.2
I don't know whether CherryPy or Kimchi results in it. In my memory, openSUSE Leap_42.1 had also worked badly once, but it has worked well now, I don't know why. And I can't reappear its condition.
Yesterday, I debuged it, I found(guess) kargs should be as the parameters related to VNC, but token obviously is not. So, I think there is maybe a question about url parsing.
Could you tell me the use of /
in path=/websockify?
? Is there a difference between path=websockify?
and path=/websockify?
?
I am having the same issue. I installed wok, kimchi, ginger-base, and ginger all via the provided RPMs on the github.io page.
Fedora 26
Name : python-cherrypy Version : 3.5.0 Release : 1.fc22
Name : wok Version : 2.5.0 Release : 0.fc25
Name : kimchi Version : 2.5.0 Release : 0.fc25
Modified /usr/share/wok/plugins/kimchi/ui/js/kimchi.min.js directly using a sed line to remove the forward slash. Now working as intended.
Full error output to the /var/log/wok/wok-error.log file.
File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond response.body = self.handler() File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 217, in call self.body = self.oldhandler(*args, kwargs) File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 61, in call return self.callable(*self.args, *self.kwargs) File "/usr/lib/python2.7/site-packages/cherrypy/_cptools.py", line 175, in handle_func handled = self.callable(args, self._merged_args(kwargs)) TypeError: staticfile() got multiple values for keyword argument 'filename'
[22/Aug/2017:00:11:53] HTTP Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond response.body = self.handler() File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 217, in call self.body = self.oldhandler(*args, kwargs) File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 61, in call return self.callable(*self.args, *self.kwargs) File "/usr/lib/python2.7/site-packages/wok/control/base.py", line 209, in index 'PUT': self.update}[method](args, kargs) TypeError: get() got an unexpected keyword argument 'token'
pull #1172 solve this question. My method is not good
When I use View Console through VNC method, the page popd can't display, error:
I debug it, add those print code:
Output:
Compared with the normal output using the
print ...
, token shouldn't appear in the('kargs: ', {'token': u'dGVzdC0z'})
.Guess: the wrong URL parsing results in it. the original URL is
After modified:
different:
path=/websockify?
VSpath=websockify
Great. My temporary solution:
However,
path=/websockify?
works well in another machine, the same version of wok, kimchi, cherrypy. I don't konw the use of/
... Hope you can solve it.