Browser version does not work in Chrome

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Browser version does not work in Chrome

Post by cazfi »

I don't know how high priority we should make this, but firefox < 11 has WebSocket prefixed with Moz -> MozWebSocket. That bites at least users of just released Debian Wheezy, which has Firefox fork IceWeasel version 10.xx.
brazilianldsjaguar
Posts: 3
Joined: Thu May 23, 2013 6:49 pm

Re: Browser version does not work in Chrome

Post by brazilianldsjaguar »

I've got similar problems, in both Chrome and Firefox.

- web browser version
Chrome Version 26.0.1410.64 m & FireFox 21
- operating system
Win 7 x64
- Internet connection speed
Pretty darn fast
- plugins installed in the browser
Chrome: "DoNotTrackMe" and "MeasureIt!"
Firefox: "DoNotTrackMe" and "EPUBReader"
- if you are connecting through a HTTP proxy
No
- if you have any problems with other HTML5 games which use websockets, eg http://rumpetroll.com/
No
- error messages in the Javascript console of your browser.
Chrome: WebSocket connection to 'ws://play.freeciv.org/civsocket' failed: Unexpected response code: 400
Firefox: Firefox can't establish a connection to the server at ws://play.freeciv.org/civsocket. @ http://play.freeciv.org/javascript-comp ... ient.js:80
AndreasR
Elite
Posts: 754
Joined: Thu May 02, 2013 10:26 pm

Re: Browser version does not work in Chrome

Post by AndreasR »

brazilianldsjaguar wrote:I've got similar problems, in both Chrome and Firefox.

- plugins installed in the browser
Chrome: "DoNotTrackMe" and "MeasureIt!"
Firefox: "DoNotTrackMe" and "EPUBReader"
Hi

Could you please try without DoNotTrackMe, MeasureIt and EPUBReader.
I would be interested in knowing if any of these is the cause of your problems.

Thanks! 8-)

Andreas
brazilianldsjaguar
Posts: 3
Joined: Thu May 23, 2013 6:49 pm

Re: Browser version does not work in Chrome

Post by brazilianldsjaguar »

Gave it a try - disabled DoNotTrackMe and MeasureIt! in Chrome, and DoNotTrackMe and EPUBReader in FireFox. Same 'connection failed' messages as before in the console.

Not sure if I mentioned this earlier, but there's also a "Network error" error message that shows up on the screen - in either browser.

I also might mention I'm behind a firewall or two... although unless it's trying to use some crazy port (not 80), there shouldn't be any problems. I was able to connect, as you suggested, to http://rumpetroll.com/ just fine - no errors - but I don't know if its websocket implementation could be different than freeciv's.

Thanks,
ImageImageImage Image<-- Click to Grow!
randscreen
Posts: 2
Joined: Fri May 17, 2013 6:10 pm

Re: Browser version does not work in Chrome

Post by randscreen »

FYI, I'm now able to start a game on iPhone 5 in Safari and Chrome.
brazilianldsjaguar
Posts: 3
Joined: Thu May 23, 2013 6:49 pm

Re: Browser version does not work in Chrome

Post by brazilianldsjaguar »

Alright, I was able to get FreeCiv browser version to work. The solution was to use my home network. Apparently, where I'm at there's some firewalls in place that must be blocking the connection. Thanks!
ImageImageImage Image<-- Click to Grow!
AndreasR
Elite
Posts: 754
Joined: Thu May 02, 2013 10:26 pm

Re: Browser version does not work in Chrome

Post by AndreasR »

brazilianldsjaguar wrote:Alright, I was able to get FreeCiv browser version to work. The solution was to use my home network. Apparently, where I'm at there's some firewalls in place that must be blocking the connection. Thanks!
Great, glad you finally managed to get the game running! Do you know what kind of firewall could be the cause of the connection problems?

Now, what do you think of the game? What could be improved?


Andreas
calvin123
Posts: 3
Joined: Thu Jun 06, 2013 10:36 am

Re: Browser version does not work in Firefox

Post by calvin123 »

Hi,

I have problems with the web socket connection in Firefox after playing some turns:

- web browser version: Firefox 21.0
- operating system: Windows 7
- Internet connection speed: 2mbit
- plugins installed in the browser:
  • Adblock Plus
  • Download Helper
  • Facebook Disconnect
  • FeBe
  • GreaseMonkey
  • gTranslate
  • HttpsEverywhere
  • Leet Key
  • NoScript
  • Remove Cookies For Site
  • Yahoo Mail Notifier
- if you are connecting through a HTTP proxy: Nope
- if you have any problems with other HTML5 games which use websockets, eg http://rumpetroll.com/
No problems on tumpretroll and I can always make some turns, before the connection is closed.
- error messages in the Javascript console of your browser:
[12:05:56.220] js_breakpad reports error: SyntaxError: JSON.parse: unexpected character 80
[12:06:56.169] WebSocket connection closed.
Post Reply