Git Product home page Git Product logo

Comments (9)

licaon-kter avatar licaon-kter commented on June 1, 2024

You have websockets active?

from converse-tauri.

moparisthebest avatar moparisthebest commented on June 1, 2024

Very odd, can you tell if there is anything running on that port ?

from converse-tauri.

cal0pteryx avatar cal0pteryx commented on June 1, 2024

You have websockets active?

Nope, first time trying to connect with Converse.js, sorry.

I know it's not the right place to mention this, but don't you think a user error should be shown when trying to connect and it doesn't work? I had to open the browser's console for that ;)

from converse-tauri.

moparisthebest avatar moparisthebest commented on June 1, 2024

Hang on, what did you change to make it work? The user shouldn't have to do anything but input a username and password

from converse-tauri.

cal0pteryx avatar cal0pteryx commented on June 1, 2024

Hang on, what did you change to make it work? The user shouldn't have to do anything but input a username and password

I didn't, because my server wasn't capable (but the GUI did not show this, no error was exposed to the user). Now it works, after I enabled Websocket support on my server :)

from converse-tauri.

cal0pteryx avatar cal0pteryx commented on June 1, 2024

Sorry, after setting up websocket support, I tested Converse Tauri using Linux (which works as expected). On Windows however, I still get

WebSocket connection to 'ws://127.0.0.1:10032/xmpp-websocket/' failed: Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol' header but no response was received
_connect @ converse.min.js:2
connect @ converse.min.js:2
connect @ converse.min.js:2
wc @ converse.min.js:2
_c @ converse.min.js:2
login @ converse.min.js:2
converse.min.js:2 
        
        ERROR: Websocket error {"isTrusted":true}
log @ converse.min.js:2
error @ converse.min.js:2
J.error @ converse.min.js:2
_onError @ converse.min.js:2
socket.onerror @ converse.min.js:2
error (asynchron)
_connect @ converse.min.js:2
connect @ converse.min.js:2
connect @ converse.min.js:2
wc @ converse.min.js:2
_c @ converse.min.js:2
login @ converse.min.js:2
await in login (asynchron)
reconnect @ converse.min.js:2
await in reconnect (asynchron)
m @ converse.min.js:2
v @ converse.min.js:2
p @ converse.min.js:2
setTimeout (asynchron)
f @ converse.min.js:2
y @ converse.min.js:2
reconnect @ converse.min.js:2
onDisconnected @ converse.min.js:2
onConnectStatusChanged @ converse.min.js:2
_changeConnectStatus @ converse.min.js:2
_doDisconnect @ converse.min.js:2
_onClose @ converse.min.js:2
socket.onclose @ converse.min.js:2
converse.min.js:2 
        
        ERROR: Websocket closed unexcectedly

There doesn't seem to be any service listening on Port 10032 when Converse is not started. When it's started, I can see

  TCP    127.0.0.1:10032        0.0.0.0:0              LISTEN

from converse-tauri.

moparisthebest avatar moparisthebest commented on June 1, 2024

Yea your server shouldn't need WebSocket support, that's why xmpp-proxy is listening on that port.

So if the port is listening I'm wondering if the windows firewall is stopping it from being connected to, or making outgoing connections, is there a way to check that in windows?

from converse-tauri.

cal0pteryx avatar cal0pteryx commented on June 1, 2024

I tried both, without success:

  • Adding explicit allow rules to the Windows Firewall
  • Completely disabling the Windows Firewall

netstat -a lists Converse Tauri listening on port 10032.

Anything I can do to debug this?

from converse-tauri.

cal0pteryx avatar cal0pteryx commented on June 1, 2024

I just tried with Converse Desktop. It did not work right away. But after adding /.well-known/host-meta data, it actually connected. Converse Tauri on the other side still doesn't connect.

from converse-tauri.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.