Connection Problem in Electron ( Or potentially any other browser )
See original GitHub issueHello,
Yesterday all of a sudden, my app started to fail to connect/login Tegram after I close and reopen it, it’s still like that for me, the console says;
WebSocket connection to 'ws://vesta.web.telegram.org/apiws' failed: Error during WebSocket handshake: Unexpected response code: 302
and the error I see;
As far as I understood from the older issues on similar topics the issue might relate to the ipv6 stuff, I tried toggling some flags during connection initialization ( useIPV6: false, useWSS: false, etc. ) and some other combinations.
Do you think that I can overcome this issue while still using a browser-side auth, or should I completely switch to a dedicated server for that, what would be the optimal solution in this case?
Note: My country is not blocked Telegram and I can access the interface using the node implementation, the node implementation tries to connect; 149.154.167.91:80/TCPFull (succeeds) while my electron app is trying to connect to; vesta.web.telegram.org/apiws (fails)
Issue Analytics
- State:
- Created 9 months ago
- Comments:12 (5 by maintainers)
well at least the connection is working. can you setup the project somewhere in github so I can clone it and test it locally? I have a feeling that the issue is with the way electron packages which causes the class names be obfuscated sometimes
That’s fine. If the issue is not urgent anymore i’ll take a look at the packaging stuff another time.