Author Topic: Discord protocol  (Read 58276 times)

0 Members and 1 Guest are viewing this topic.

Offline ghazan

Re: Discord protocol
« Reply #45 on: 24 02 2020, 09:29:46 »
Thug,
I wouldn't call that "a glitch", if server suspects that you're a bot, it verifies your connection using a captcha, so you need to enter a browser
 
The following users thanked this post: Thug

Offline dartraiden

Re: Discord protocol
« Reply #46 on: 25 02 2020, 18:38:02 »
Miranda does not support captcha and now redirects the user to the browser
https://github.com/miranda-ng/miranda-ng/commit/89dfd2db2ba84f1d2f6bb35a43256fc8183cb9b0
« Last Edit: 25 02 2020, 18:41:06 by dartraiden »
 
The following users thanked this post: Thug

Offline phatmr

Re: Discord protocol
« Reply #47 on: 15 07 2020, 21:57:55 »
Hello,

something happened to discord protocol last days?

Since 3 days i cant connect to discord via miranda anymore.
It seems to connect and disconnect a second later.
Thats what i found in discord log of miranda ng:

[23:37:16 04B0] [Discord_1.Gateway] (017671B8:1276) Data received
HTTP/1.1 404 Not Found
[23:37:16 04B0] [Discord_1.Gateway] Error establishing WebSocket connection to gateway.discord.gg/?encoding=json&v=6, status 404
[23:37:16 04B0] [Discord_1] Gateway connection failed, exiting

I'm using the actual 32bit dev build of miranda ng with discord 0.6.2.5 plugin.

If i connect via browser on official site it works.

Please someone could help in that?

regards
phatmr
 

Offline ghazan

Re: Discord protocol
« Reply #48 on: 16 07 2020, 09:17:11 »
phatmr,
error 404 means that either your query was forged/denied by a proxy or you have DNS problems.
please check that gateway.discord.gg resolves to

Name:    gateway.discord.gg
Addresses:  162.159.130.234
          162.159.134.234
          162.159.133.234
          162.159.136.234
          162.159.135.234
 

Offline phatmr

Re: Discord protocol
« Reply #49 on: 16 07 2020, 23:02:43 »
Hi ghazan,

Thank you for your answer.
I checked it.
gateway.discord.gg is resolved to IP 162.159.134.234
So it shouldn't be the DNS.
I haven't used a proxy for a long time.
Nothing has changed in my network setup.
Do you need more information or certain logs?

Greetings phatmr
 

Offline ghazan

Re: Discord protocol
« Reply #50 on: 17 07 2020, 11:27:28 »
phatmr,
Do you need more information or certain logs?
yes, send me the full log (core + Discord) as a private message, please, it shall not be long
 

Offline phatmr

Re: Discord protocol
« Reply #51 on: 17 07 2020, 22:19:55 »
PM sent.
 
The following users thanked this post: ghazan

Offline ghazan

Re: Discord protocol
« Reply #52 on: 20 07 2020, 17:17:55 »
phatmr,
could you try to turn on group chats in Discord?
 

Offline phatmr

Re: Discord protocol
« Reply #53 on: 21 07 2020, 09:00:11 »
Hi ghazan,

i tryed that. Same error ocured.

New PM sent ;)
 

Offline thosrtanner

  • Jr. Member
  • **
  • Posts: 56
Re: Discord protocol
« Reply #54 on: 23 07 2020, 15:55:58 »
I get this too. It's intermittent. It worked for a bit this morning and then stopped working again later.
 

Offline TioDrakul

Re: Discord protocol
« Reply #55 on: 23 07 2020, 22:57:07 »
Same here. You try to connect, the connection is made and then immediately afterwards the status goes back to offline. Sometimes you can stay online for a few minutes but then go offline again. I would venture to say that it may be some functionality of the Discord server that is testing whether the client is the official and when it does not receive the expected response then it disconnects immediately.
 

Offline ghazan

Re: Discord protocol
« Reply #56 on: 25 07 2020, 18:33:45 »
Gentlemen,

I've made a nightly build with a small fix, it cured at least one user from problem 404.
Could you update & try? Any info is appreciated.
 

Offline TioDrakul

Re: Discord protocol
« Reply #57 on: 27 07 2020, 12:16:42 »
I downloaded the nightly build today and looked more closely at the log (in normal operation I leave it off), and it seems that the error 404 problem is still here. Attached is the log section where the connection attempt occurs and the error that happens next
 

Offline ghazan

Re: Discord protocol
« Reply #58 on: 27 07 2020, 13:37:32 »
TioDrakul,
could you try to lock gateway.discord.gg to 162.159.133.234 instead of 162.159.134.234 in /etc/hosts?
I seriously suspect that 162.159.134.234 is the root of our troubles
 

Offline TioDrakul

Re: Discord protocol
« Reply #59 on: 27 07 2020, 13:50:23 »
Okay, i changed my hosts file to force the ip you suggested and Miranda then used that ip, but the problem persists (the same 404 error). It seems to me that the problem is something that happens after the initial connection was successful.
 
The following users thanked this post: ghazan