-
Notifications
You must be signed in to change notification settings - Fork 136
Cannot download "GIF" mp4 #325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sounds like the GIF happens to live in a different datacenter, whcih is why I'd suggest looking at grammers/lib/grammers-client/src/client/net.rs Lines 324 to 351 in ed516f5
|
Yeah, it seems to live in a different DC indeed:
But eventually code hits line 456: grammers/lib/grammers-client/src/client/net.rs Lines 435 to 456 in ed516f5
Stack trace: * frame #0: 0x0000000102324eb0 tg-keeper`grammers_client::client::net::<impl grammers_client::client::client::Connection>::invoke::{{closure}}((null)=0x000000016eb45230) at net.rs:456:25
frame #1: 0x00000001023216f8 tg-keeper`grammers_client::client::net::<impl grammers_client::client::client::Client>::connect_sender::{{closure}}((null)=0x000000016eb45230) at net.rs:341:22
frame #2: 0x0000000102320aa8 tg-keeper`grammers_client::client::net::<impl grammers_client::client::client::Client>::invoke_in_dc::{{closure}}((null)=0x000000016eb45230) at net.rs:366:48
frame #3: 0x000000010235afb8 tg-keeper`grammers
6765
_client::client::files::DownloadIter::next::{{closure}}((null)=0x000000016eb45230) at files.rs:108:75
frame #4: 0x000000010235dfec tg-keeper`grammers_client::client::files::<impl grammers_client::client::client::Client>::load::{{closure}}((null)=0x000000016eb45230) at files.rs:230:14
frame #5: 0x000000010235bb38 tg-keeper`grammers_client::client::files::<impl grammers_client::client::client::Client>::download_media::{{closure}}((null)=0x000000016eb45230) at files.rs:222:43
frame #6: 0x000000010236ee9c tg-keeper`tg_keeper::download_media_in_background::{{closure}}((null)=0x000000016eb45230) at main.rs:359:64
... Error: 0 = {grammers_mtsender::errors::RpcError}
code = {i32} 400
name = {alloc::string::String} "AUTH_BYTES_INVALID"
value = {core::option::Option<u32>::None} None
caused_by = {core::option::Option<u32>::Some} 2776268205 At that point, |
With latest commit of grammers (ed516f5), attempting to download "GIF" (so,
mp4
file document) results inrequest error: rpc error 400: AUTH_BYTES_INVALID caused by auth.importAuthorization
.Other media seem to be downloaded fine.
To make matters worse, sometimes - very rarely - downloading GIF works, and I can't figure out what causes this.
Code doing the download, when stripped of unrelated stuff, looks like this:
The text was updated successfully, but these errors were encountered: