Giter Site home page Giter Site logo

Issue with xmpp chat about jsxc HOT 5 CLOSED

jsxc avatar jsxc commented on May 18, 2024
Issue with xmpp chat

from jsxc.

Comments (5)

birox avatar birox commented on May 18, 2024

I have 2 other users that I tried to login with using IE 10 and Safari, they get loggedin but on the buddy list it does not show any user dough they belong to a openfire xmpp user group. And when I check openfire sessions those 2 users logged in with IE or Safari do not appear in active sessions.

Here is log for the Safari user as example:

User information

language: en-US
productSub: 20030107
product: Gecko
appCodeName: Mozilla
vendorSub:
vendor: Apple Computer, Inc.
platform: Win32
appName: Netscape
appVersion: 5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
userAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
Height: 1080
Width: 1920
jsxc version: 0.5.2
Log

[WARN] No translation for: Menu
[WARN] No translation for: Hide_offline
[WARN] No translation for: About
checkChief
setItem: alive
I am chief.
setItem: alive
setItem: alive_busy
setItem: windowlist
DSA key loaded
setItem: priv_fingerprint
No saved buddylist.

Also on Opera browser once logged in it starts generating the key but it just staid like that it never generates the key just shows loading and there are javascript errors appearing in the console log:

Uncaught exception: Error: Keys should not be generated without CSPRNG. Inline script thread files:1643
Uncaught exception: TypeError: Cannot convert 'BigInt' to object Inline script thread files:123
Uncaught exception: ReferenceError: Undefined variable: BigInt Timeout thread: delay 500 ms files:3482
Uncaught exception: Error: Keys should not be generated without CSPRNG. Inline script thread documents:1643
Uncaught exception: TypeError: Cannot convert 'BigInt' to objectError thrown at line 104, column 2 in () in /apps/ojsxc/js/jsxc/lib/otr/build/otr.js?v=74b4d273507a7e0eba857955bd45b2cf:

from jsxc.

birox avatar birox commented on May 18, 2024

Update, I said I had 2 Chrome sessions opened and 2 users loggedin which can't seem to receive each other messages. I logged out from one of the user accounts on a chrome session and loggedin as one of the users i was trying with IE. It logged in properly and i am able to chat with the other chrome session user both ways. So any idea why with the previous user i cannot? Can it be something from sessions, cookies?

from jsxc.

birox avatar birox commented on May 18, 2024

Update: Ok so there is clearly some issue with the sessions and is getting more complicated and frustrating.
So i cleared the chrome cookie session and i was able to communicate between initial users (raveenthfuplo & birofuplo), and the 3rd user (nicholasfuplo) i logged him out of chrome session in order to test raveenthfuplo after cookies cleared and logged nicholasfuplo using mozzilla browser (which is the second browser after chrome that seems to have no issue with the chat). So i successfully logged in nicholasfuplo with firefox and i tried to chat with the user i was chatting from chrome in previous session (birofuplo) and messages do not show. If i try to chat with raveenthfuplo that works i think because never messaged this user from another browser/session. So something is clearly wrong with the management of these sessions as now I can't say is due to resource keys since i'm checking them and they all display the preset "web".

Here's the log for user nicholasfuplo on firefox:

User information
Height: 1080
Width: 1920
jsxc version: 0.5.2
Log

[WARN] No translation for: Menu
[WARN] No translation for: Hide_offline
[WARN] No translation for: About
checkChief
setItem: alive
I am chief.
setItem: alive
setItem: alive_busy
setItem: windowlist
close dialog
No saved buddylist.
Try to attach
SID: 225e309d
ATTACHED: null
Load roster: fuplofuplofuplo
Send presence:
Roster ready
onPresence:
Presence ([email protected]/web): 2
onPresence:
Presence ([email protected]/web): 2
Incoming message: ?OTR:AAMDVJZ7oc6gRM4AAAAAAQAAAAEAAADARwU3clwT7XgXBpXxHH83Em/DFtszlUGaaOhAwP9cbV343yPtljghG5MqAZaUhmfcUo49Et5VNmNu+DHOKMFyOyIawyk5ubMrUzuhdrvg8daETFM59p878CXIp5EnQD/USBCMFhcunToi8R1wHEgy2F6DVd0psC8SUFJaTWUK0aL1ElNWIfwoOpYYnhtRyf4rQEHnMP67CnCvPQ839I+tmAqUdxAjG610eK19Ffkj8GHIrln5NDopYk2geh0istqbAAAAAAAAAAIAAAAGtWbz39PcRD2VytneDjMmpFHlsAIruHp2k+YAAAAA.
Incoming message: ?OTR:AAMCQthhmAAAAAAAAADET9aQXCObj8T4IPJO/iLeeIYdPhS5GwFhe3bC5+l6zsHw78KGKjh8NbZJscgE5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4njcAN3JMKCd2GNx0ZtGTYb4eAmoUka+k0DoyPSofWtNiJeX1/JQkVujNWOCjFRi/KNBwGNjnDcArWfxG9me7ZbstxOs278UKIIwiRdw8FmqJQuDcaafd0Oz9OSs4lAeQK2BfcRCuY7uicWMkPoinGId3qQqpZeiBzCCrRij7dylEOkAAAAAAAAAAAEAAAADX5vwM8KT9SYEXzz62z63gTG3dtfQyZkAAAAA.
[WARN] No translation for: Dismiss
[WARN] No translation for: Confirm
close dialog

from jsxc.

sualko avatar sualko commented on May 18, 2024

First of all, as I understood the original problem is solved. Is that right?

Next you have to understand how xmpp works. The first message you will send will go to the bar jid (without resource) and the server routes it to the resource with the highest priority. So please check if there is an other user logged in with the same jid.

As I can see you test the message delivery with otr, but please don't do that. Because in some specific cases (if you delete the browser storage) the otr protocol ignores incoming messages. I'm looking for a solution, but for now don't do this kind of tests with otr.

Apropos of nothing you don't need to clear the browser storage if you want to use two different users in one browser.

from jsxc.

sualko avatar sualko commented on May 18, 2024

I close this, because issuer didn't response.

from jsxc.

Related Issues (20)

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.