Comments (19)
@dbrgn Thanks for your quick response! I find it exceptional that you decided to open-source Threema Web and accept support requests like this on GitHub! 👍
from threema-web.
Could you test whether other WebRTC based projects work with the same two devices connected to the same network, e.g. https://appear.in/?
from threema-web.
@dbrgn appear.in works: same workstations as with Threema, same phone, same LAN for both devices.
from threema-web.
Can you look at the debug console of your browser (F12)? Does it contain anything interesting? Maybe share a gist to the relevant looking section?
from threema-web.
Posting the log of the browser would probably be helpful.
Also, using wireshark on the PC to capture stun
packets (can be used as a display filter) would help to see if ICE is working between the devices (turn off other WebRTC applications before though).
from threema-web.
https://www.dropbox.com/sh/t1sfk9nij7sw1x2/AACUPJABO-3n8HHL7Dt3Hr0za?dl=0
Contains WireShark capture, HAR of web requests and the console log. The capture was created after connecting the phone back to the LAN. So session active -> trying to reconnect -> session ended error message.
from threema-web.
Have you tried using Firefox?
from threema-web.
What I see is that the ICE connection between the devices is lost about a minute after the connection buildup succeeded (so the webclient was open and working for a minute, right?). If you switch networks, it's normal that the connection is lost. Otherwise we'd need to keep a permanent websocket signaling connection open. This is something that we wanted to avoid to keep the amount of metadata on the server minimal.
On connection loss the webclient tries to auto-reconnect, which fails. This is a known issue, sometimes reconnecting is a big buggy. This will hopefully be fixed in the next release.
The other thing you mentioned is that connecting never succeeds if both devices are in the same network. @agross, was your phone initially in mobile network when you created that log? If yes, could you send another browser log trace with a failed connecting attempt?
from threema-web.
@dbrgn The issue is that I cannot pair when both devices are on the same LAN. Pairing only succeeds on mobile data. Once paired, I need to be on mobile data to restore a once-paired session. So yes, in order to create the logs I needed to make the switch from mobile data to wifi.
from threema-web.
@lgrahl FF shows the same behavior as Chrome.
from threema-web.
@agross But you can reload the browser, open the debug console (F12), attempt to pair and then copy the debug log after pairing fails.
from threema-web.
I'm on the run right now. I'll send you a capture of a failed pairing attempt later today. The only visible indication of pairing is currently that the phone shows a spinner. No message in the browser UI.
from threema-web.
I don't even see an attempt in the Wireshark tracefile for direct device-to-device communication. It's always TURN-relayed.
Can you provide another Wireshark tracefile for FF and a log? Please also mention what kind of action you take at what point in time.
from threema-web.
The only visible indication of pairing is currently that the phone shows a spinner.
If the browser does not react to the connection attempt, that would indicate that the connection from your phone to the signaling server fails already.
You could enable the debug log in the app (Threema > Settings > Troubleshooting > "Log to File"), try to connect again and then send us the logfile (/sdcard/Threema/message_log.txt, doesn't contain any unencrypted or otherwise readable message contents). If you don't want to post it in public, you can also open a support ticket (https://threema.ch/en/support) and reference this comment.
from threema-web.
I cannot pair either in WiFi nor in mobile mode. Firefox stops at 99%.
I have Android 4.3 on Galaxy S3 with Bitdefender Mobile Security on board, and I temporarily deactivated browsing security. PC with Win10Pro, Firefox and Chrome (latest builds) and F-Secure (deactivation didn't change anything.
I'm not such an expert, but I'l attach my Threema and Firefox console log files:
message_log.txt
firefox_threemaweb_log.txt
from threema-web.
@Anke thanks. Your issue is different than the one by the original poster, it appears that you stumbled upon a bug on the app side. We will look into it.
from threema-web.
Alright, I think I found the culprit. It was due to broken IPv6 connectivity by my ISP.
Normally, the dual stack configuration works, but today the v6 part got broken. By the time I tried pairing the phone it had an IPv6 address which it used to create outgoing connections (that never reached their destination). With mobile data on the other hand the phone only had IPv4 available, so outgoing connections from the phone worked.
from threema-web.
@agross good that you could solve it! LANs are the easiest case for WebRTC, therefore I was a bit confused why it wouldn't work :)
from threema-web.
@Anke please follow #38 regarding the 99% bug.
from threema-web.
Related Issues (20)
- "Uncaught ReferenceError: WebAssembly is not defined" in Microsoft Edge HOT 2
- Chats scrolls down when trying to scroll up and older content loads in HOT 3
- Chrome: Password filling doesn't work anymore
- Threema desktop preventing standby on Windows HOT 6
- User Interface: Could not switch to "Minimal" user interface HOT 3
- CI feature: integrate pull request preview environments HOT 1
- Image quality is bad HOT 1
- App does not start/install anymore (on W7) - says instead "GetpackageFamilyName()" in "KERNEL32.dll" couldn't be found HOT 1
- Big files won't upload HOT 3
- Editing of posts HOT 1
- Agree/disagree feature HOT 1
- Replace cryptography with something better
- Please document the required node version HOT 2
- Version 2.5.3's marking of read messages is incompatible with non-current Firefox versions HOT 3
- Strange linkification for path to python script
- Compose area with multiple lines cannot be scrolled fully to the top
- Missing placeholder text in compose area when deleting multiple lines HOT 1
- Latest update not released, getting annoyed by update pop-up HOT 9
- Mentions of unknown contacts are not parsed at all
- Allow to delete many message items at once
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from threema-web.