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: 1723
Joined: Tue Jan 29, 2013 6:54 pm

Re: Browser version does not work in Chrome

Postby cazfi » Wed May 22, 2013 10:20 pm

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

Postby brazilianldsjaguar » Thu May 23, 2013 6:55 pm

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

User avatar
AndreasR
Elite
Posts: 699
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: Browser version does not work in Chrome

Postby AndreasR » Thu May 23, 2013 9:17 pm

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

Postby brazilianldsjaguar » Thu May 23, 2013 9:58 pm

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

Postby randscreen » Tue May 28, 2013 6:04 pm

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

Postby brazilianldsjaguar » Wed May 29, 2013 3:41 pm

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!

User avatar
AndreasR
Elite
Posts: 699
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: Browser version does not work in Chrome

Postby AndreasR » Wed May 29, 2013 9:05 pm

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: 1
Joined: Thu Jun 06, 2013 10:36 am

Re: Browser version does not work in Firefox

Postby calvin123 » Thu Jun 06, 2013 10:46 am

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.