code 404, message File not found issue

460 views
Skip to first unread message

superfsm

unread,
Oct 18, 2011, 10:44:43 AM10/18/11
to pywebsocket
I used to use Chrome13 and pywebsocket to build an application
After I upgraded Chrome to 14, it broke down. There was a keyword
issue.

To solve this problem, I changed the keyword 'Origin' (v12) back to
Sec-WebSocket-Origin (v10) in common.py to make it compatible with
Chrome 14.

Then when I run "python standalone.py -p 12345 -d example"
I got the following message on server side after connecting to this
websocket from Chrome,
-------------------------------
[2011-10-11 17:01:00,370] [WARNING] root: cn5215s.calix.local - code
404, message File not found
-------------------------------

Could anybody tell me what is the potential problem?
Or how to make Chrome14 work with the current version of pywebsocket?

Thank you!

Takashi Toyoshima

unread,
Oct 18, 2011, 11:07:10 AM10/18/11
to pyweb...@googlegroups.com
Hi

Which version of pywebsocket are you using?
Actually, mod_pywebsocket 0.6b6 is used by WebKit's continuous build tests
and it worked fine with WebKit versions used by Chrome 14 and laters.

As Takeshi wrote in following blog post,
http://blog.chromium.org/2011/08/new-websocket-protocol-secure-and.html
We updated the hybi protocol from 00 to 08 at Chrome 14, and updated again
to 13 at Chrome 15.

The new protocol is quite different from old one. So old pywebsocket
could not work with newer Chrome. It is not just a keyword difference.

Thanks

Takeshi Yoshino

unread,
Oct 18, 2011, 12:04:20 PM10/18/11
to pyweb...@googlegroups.com
Hi,

Sorry. We found that old version was highlighted on the project home page by mistake. We've fixed it.
Please make sure to use this latest version (0.6b6) as Takashi said.

superfsm

unread,
Oct 18, 2011, 2:11:10 PM10/18/11
to pywebsocket
Thank you, it is working now.
It was probably because I didn't really get the newest version of
pywebsocket as I expected.

On Oct 18, 12:04 pm, Takeshi Yoshino <tyosh...@chromium.org> wrote:
> Hi,
>
> Sorry. We found that old version was highlighted on the project home page by
> mistake. We've fixed it.
> Please make sure to use this latest version (0.6b6) as Takashi said.http://code.google.com/p/pywebsocket/downloads/detail?name=mod_pywebs...
>
> On Wed, Oct 19, 2011 at 00:07, Takashi Toyoshima <toyos...@chromium.org>wrote:
>
>
>
>
>
>
>
> > Hi
>
> > Which version of pywebsocket are you using?
> > Actually, mod_pywebsocket 0.6b6 is used by WebKit's continuous build tests
> > and it worked fine with WebKit versions used by Chrome 14 and laters.
>
> > As Takeshi wrote in following blog post,
> >http://blog.chromium.org/2011/08/new-websocket-protocol-secure-and.html
> > We updated the hybi protocol from 00 to 08 at Chrome 14, and updated again
> > to 13 at Chrome 15.
>
> > The new protocol is quite different from old one. So old pywebsocket
> > could not work with newer Chrome. It is not just a keyword difference.
>
> > Thanks
>
Reply all
Reply to author
Forward
0 new messages