EionRobb / purple-discord

A libpurple/Pidgin plugin for Discord
GNU General Public License v3.0
371 stars 42 forks source link

Can't login to discord #315

Open ZenoNiQ opened 3 years ago

ZenoNiQ commented 3 years ago

Platform: win10 Client: Pidgin libjson-glib from README.md nightly build from README.md Can't login to account with 2FA, without work good.

(16:55:58) account: Connecting to account ********@gmail.com.
(16:55:58) connection: Connecting. gc = 0541CDE8
(16:55:58) discord: Fetching url https://discord.com/api/v6/auth/login
(16:55:58) discord: With postdata ###PASSWORD REMOVED###
(16:55:58) util: requesting to fetch a URL
(16:55:58) dnsquery: Performing DNS lookup for discord.com
(16:55:58) signals: Signal data for chat-conversation-typing not found!
(16:55:58) dnsquery: IP resolved for discord.com
(16:55:58) proxy: Attempting connection to 162.159.136.232
(16:55:58) proxy: Connecting to discord.com:443 with no proxy
(16:55:58) proxy: Connection in progress
(16:55:58) proxy: Connecting to discord.com:443.
(16:55:58) proxy: Connected to discord.com:443.
(16:55:58) nss: SSL version 3.3 using 128-bit AES-GCM with 128-bit AEAD MAC
Server Auth: 256-bit ECDSA, Key Exchange: 256-bit ECDHE, Compression: NULL
Cipher Suite Name: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
(16:55:58) nss: subject=CN=ssl764977.cloudflaressl.com issuer=CN=COMODO ECC Domain Validation Secure Server CA 2,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB
(16:55:58) nss: partial certificate chain
(16:55:58) certificate/x509/tls_cached: Starting verify for discord.com
(16:55:58) certificate/x509/tls_cached: Checking for cached cert...
(16:55:58) certificate/x509/tls_cached: ...Found cached cert
(16:55:58) nss/x509: Loading certificate from C:\Users\********\AppData\Roaming\.purple\certificates\x509\tls_peers\discord.com
(16:55:58) certificate/x509/tls_cached: Peer cert matched cached
(16:55:58) nss/x509: Exporting certificate to C:\Users\********\AppData\Roaming\.purple\certificates\x509\tls_peers\discord.com
(16:55:58) util: Writing file C:\Users\********\AppData\Roaming\.purple\certificates\x509\tls_peers\discord.com
(16:55:58) nss: Trusting CN=ssl764977.cloudflaressl.com
(16:55:58) certificate: Successfully verified certificate for discord.com
(16:55:58) util: request constructed
(16:55:59) util: Response headers: 'HTTP/1.1 400 Bad Request

Date: Tue, 27 Oct 2020 14:55:59 GMT

Content-Type: application/json

Content-Length: 42

Connection: close

Set-Cookie: __cfduid=d3bd541b4fb819147f3bafa15d495e80d1603810559; expires=Thu, 26-Nov-20 14:55:59 GMT; path=/; domain=.discord.com; HttpOnly; SameSite=Lax; Secure

strict-transport-security: max-age=31536000; includeSubDomains; preload

x-envoy-upstream-service-time: 251

Via: 1.1 google

CF-Cache-Status: DYNAMIC

cf-request-id: 060c281c2200003248ab366000000001

Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"

Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=pTTWH8KqL0XiHZBvoF8ZucxE16kconwsl0lYBFzMYWAGGSRM2HddP1UMOBfaACAhZAo6On8pBQAGJmWLa%2FzWezSnfuibKflhj020ng%3D%3D"}],"group":"cf-nel","max_age":604800}

NEL: {"report_to":"cf-nel","max_age":604800}

X-Content-Type-Options: nosniff

Server: cloudflare

CF-RAY: 5e8d42d9c8183248-FRA

'
(16:55:59) util: parsed 42
(16:55:59) discord: Got response: {"password": ["Password does not match."]}
(16:55:59) connection: purple_connection_error_reason called with NULL description
(16:55:59) connection: Connection error on 0541CDE8 (reason: 2 description: Неизвестная ошибка)
(16:55:59) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\discord.png: Не удалось открыть файл «C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\discord.png»: No such file or directory
(16:55:59) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\discord.png: Не удалось открыть файл «C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\discord.png»: No such file or directory
(16:55:59) account: Disconnecting account *********@gmail.com (0274A918)
(16:55:59) connection: Disconnecting connection 0541CDE8
(16:55:59) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\discord.png: Не удалось открыть файл «C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\discord.png»: No such file or directory
(16:55:59) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\discord.png: Не удалось открыть файл «C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\discord.png»: No such file or directory
(16:55:59) connection: Destroying connection 0541CDE8
onestep749 commented 3 years ago

Discord has depracated the v6 api, so this won't work anymore. it is also long abandoned, so don't expect a fix.

Might I suggest checking out https://github.com/Bios-Marcel/cordless

It always works.

EionRobb commented 3 years ago

Discord has depracated the v6 api, so this won't work anymore. Except that it still does, and will for a while longer

it is also long abandoned, so don't expect a fix. Is it?

v8 api support is in the works, it just has worse room user list than v6 so hasn't been made public yet

onestep749 commented 3 years ago

Ok I stand corrected, also there seems to be some problem with NSS.

On 10/31/20, Eion Robb notifications@github.com wrote:

Discord has depracated the v6 api, so this won't work anymore. Except that it still does, and will for a while longer

it is also long abandoned, so don't expect a fix. Is it?

v8 api support is in the works, it just has worse room user list than v6 so hasn't been made public yet

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/EionRobb/purple-discord/issues/315#issuecomment-719995525