question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection Problem in Electron ( Or potentially any other browser )

See original GitHub issue

Hello,

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; error_mtp

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:closed
  • Created 9 months ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
painorcommented, Dec 8, 2022

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

1reaction
painorcommented, Dec 8, 2022

That’s fine. If the issue is not urgent anymore i’ll take a look at the packaging stuff another time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron 'Permissions Context' potentially causing Renderer ...
Attempting to send the message crashes the Electron renderer. All other MIDI messages and the Web MIDI API seem to work as expected...
Read more >
10 Ways to Fix the NET::ERR_CERT_DATE_INVALID Error
The NET::ERR_CERT_DATE_INVALID error occurs when browsers don't trust the reliability of a site's SSL certificate. Here's how to fix it.
Read more >
"This browser or app may not be secure" error when trying to ...
The problem must lie with the particular account because I can log into the same app just fine with other Google accounts. The...
Read more >
TestCafe can't establish browser connection when ...
I am attempting to run a test on our Electron app using TestCafe. ... "ERROR Unable to establish one or more of the...
Read more >
Security | Electron
When working with Electron, it is important to understand that Electron is not a web browser. It allows you to build feature-rich desktop...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found