Zeronet: Connection with uiServer websocket lost.... reconnecting

Created on 2 May 2016  Â·  13Comments  Â·  Source: HelloZeroNet/ZeroNet

Hi. I get this everytime I open zeronet and the main page wont load.

Connection with uiServer websocket lost.... reconnecting

Most helpful comment

Here is a version that allows http1.0 connections please try to save it to ZeroNet/src/lib/gevetwebsocket to directory, restart zeronet and try again: https://gist.githubusercontent.com/HelloZeroNet/3ff4a0fe233fc5b4c153d7b475ac8b07/raw/85fef31da837d5f0a9bc9da96c7de1919050e3c8/handler.py

All 13 comments

Are you running a local ZN or going over a proxy ?
Because I have seen such messages often on proxies.

If local ZN: can you check what your debug.log says ?

Well I can't paste the entire debug but the error starts at lib.geventwebsocket.handler bad server protocol in headers.

you can send it to [email protected], but it's usually caused by antivirus softwares/browser extensions

see https://github.com/HelloZeroNet/ZeroNet/issues/195

according to logs your browser tries to use HTTP/1.0 instead of HTTP/1.1, not sure why is it happening (All common desktop browsers (Netscape/Mozilla, Internet Explorer, et al) in the last 10-13 years support HTTP/1.1.)

thanks for trying to help me... I'm sure I will figure it out eventually.

On Tue, May 3, 2016 at 10:56 AM, ZeroNet [email protected] wrote:

according to logs you browser tries to use http/1.0 instead of http1.1,
not sure why is it happening (All common desktop browsers
(Netscape/Mozilla, Internet Explorer, et al) in the last 10-13 years
support HTTP/1.1.)

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/HelloZeroNet/ZeroNet/issues/448#issuecomment-216554864

I also encountered the same problem,windows10,I had try Chrome IE Opera and firefox,the same"Connection with UiServer Websocket was lost. Reconnecting...",Microsoft Edge can't even open the page.

On Chrome,the javascript console repeat logs:
[Wrapper] Created!
all.js?rev=1284:40 WebSocket connection to 'ws://127.0.0.1:43110/Websocket?wrapper_key=6351f80e76dd8ddf7b34b914744bfcc63e7d8360d128f88e045964abdf40b8bc' failed: Error during WebSocket handshake: Unexpected response code: 402
all.js?rev=1284:106 [ZeroWebsocket] Error Eventbubbles: falsecancelBubble: falsecancelable: falsecurrentTarget: WebSocketdefaultPrevented: falseeventPhase: 0isTrusted: trueisTrusted: truepath: Array[0]returnValue: truesrcElement: WebSockettarget: WebSockettimeStamp: 1266.3950000000002type: "error"proto: Event
all.js?rev=1284:106 [ZeroWebsocket] Closed CloseEventbubbles: falsecancelBubble: falsecancelable: falsecode: 1006currentTarget: WebSocketdefaultPrevented: falseeventPhase: 0path: Array[0]reason: ""returnValue: truesrcElement: WebSockettarget: WebSockettimeStamp: 1266.6200000000001type: "close"wasClean: false__proto__: CloseEvent
all.js:1045 [ZeroHello] Route Objecturl: ""proto: Object
all.js:1045 [ZeroHello] restore scrollTop null 0
all.js:1045 [ZeroHello] Websocket close
all.js?rev=1284:106 [ZeroWebsocket] Reconnecting...

its the same problem: your browser try to use a protocol (http/1.0) that is more than 10 years old. probably its caused by an antivirus software for some unknown reasons

Here is a version that allows http1.0 connections please try to save it to ZeroNet/src/lib/gevetwebsocket to directory, restart zeronet and try again: https://gist.githubusercontent.com/HelloZeroNet/3ff4a0fe233fc5b4c153d7b475ac8b07/raw/85fef31da837d5f0a9bc9da96c7de1919050e3c8/handler.py

I have personally seen Fiddler downgrading the protocol to HTTP 1.0. Maybe @Igitzu uses some web proxy similar to that tool?

i meet this problem but i am going over a proxy ,can help me ? @Erkan-Yilmaz

Problem is probably from your proxy @yulele17 .
Have you tried without proxy or with a different one ?

I am having this problem on a local install of zeronet, going over tor (always), using Firefox 59.0.2 (64-bit) on Ubuntu 16.04. It's a new Firefox profile, save for the MM3-Proxy Switch extension, which I'm using to connect to Tor. I use the same proxy extension on Chromium 65.0.3325.181, along with many other extensions, and I don't have that problem at all.

Error message always on:

zeronet 0 5 4 0 - 2018-07-24 - error - 002

Connection never established.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sergei-bondarenko picture sergei-bondarenko  Â·  3Comments

imachug picture imachug  Â·  3Comments

blurHY picture blurHY  Â·  3Comments

Forbo picture Forbo  Â·  3Comments

ghost picture ghost  Â·  4Comments