apparently fails to get AAS token #1

Closed
opened 2026-04-11 23:51:01 +02:00 by Ser-Bul · 4 comments

gplay-dl login oauth2_4...
fails with:

thread 'main' (92555) panicked at src/main.rs:133:70:
called Result::unwrap() on an Err value: Error { kind: Authentication }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Maybe you should implement a fix similar to gitlab.com/ggabr/AuroraStore/-@400eb720db

gplay-dl login oauth2_4... fails with: thread 'main' (92555) panicked at src/main.rs:133:70: called `Result::unwrap()` on an `Err` value: Error { kind: Authentication } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Maybe you should implement a fix similar to https://gitlab.com/ggabr/AuroraStore/-/commit/400eb720dbd8f4526dc8a1064c8f9a4a7e322ef3
Owner

A fix based on this exact change in Aurora Store was implemented in a9cf647b90, which in turn pulled in Grzesiek11/gplay-lib@498cae3a52 from gplay-lib.

This should be part of both master and the latest build, are you sure you are not using an older version?

A fix based on this exact change in Aurora Store was implemented in https://git.stary.pc.pl/Grzesiek11/gplay-dl/commit/a9cf647b9054eb2619c53edf5adbfda268fe5ef8, which in turn pulled in https://git.stary.pc.pl/Grzesiek11/gplay-lib/commit/498cae3a52db2261d1c4ea4f2cc2bf5815e57b0c from gplay-lib. This should be part of both `master` and the latest build, are you sure you are not using an older version?
Author

I'm using https://git.stary.pc.pl/Grzesiek11/gplay-dl/releases/download/v0.1.0-git.a9cf647/gplay_dl-0.1.0-git.a9cf647-linux-x86_64.tar.lz
gplay-dl SHA1 5d7231fb9b5096853c43f592ebf25415ca4001fa

config.toml is (email redacted):

check_delay = 10000

[authentication]
email = "myusername@gmail.com"
aas_token = ""

[download]
locale = "en"
download_devices = ["px_9a"]
target_directory = "{package}/{version}"
skip_existing = true
lax = false

command output (token redacted):

$ RUST_BACKTRACE=full gplay-dl login oauth2_4/...

thread 'main' (152309) panicked at src/main.rs:133:70:
called `Result::unwrap()` on an `Err` value: Error { kind: Authentication }
stack backtrace:
   0:     0x721070e13bd2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::haafde1746b0646ac
   1:     0x721070e42917 - core::fmt::write::h1516f398307189eb
   2:     0x721070df19b6 - std::io::Write::write_fmt::h80f5b0125355cbc7
   3:     0x721070dfb7a6 - std::panicking::default_hook::{{closure}}::hc8a22fe5717096aa
   4:     0x721070dfb606 - std::panicking::default_hook::h4d533e257cc8a9d4
   5:     0x721070dfb9eb - std::panicking::panic_with_hook::hc9fb5f48ab261992
   6:     0x721070dfb868 - std::panicking::panic_handler::{{closure}}::h8d9b00e794b9f500
   7:     0x721070df8e89 - std::sys::backtrace::__rust_end_short_backtrace::h38441692b60c522e
   8:     0x721070de5e1d - __rustc[d131491b17107b07]::rust_begin_unwind
   9:     0x7210708a77dc - core::panicking::panic_fmt::h0765f55a1f6f6e1e
  10:     0x7210708a74c2 - core::result::unwrap_failed::ha2ac3d384275b895
  11:     0x72107093084e - gplay_dl::main::h43edf36e5f47a06d
  12:     0x721070964c53 - std::sys::backtrace::__rust_begin_short_backtrace::h35d0e6a40a3fcdf6
  13:     0x721070961d09 - std::rt::lang_start::{{closure}}::h832747f59d48ae9e
  14:     0x721070df33fc - std::rt::lang_start_internal::h4ef3455d773bd052
  15:     0x721070931065 - main
I'm using https://git.stary.pc.pl/Grzesiek11/gplay-dl/releases/download/v0.1.0-git.a9cf647/gplay_dl-0.1.0-git.a9cf647-linux-x86_64.tar.lz gplay-dl SHA1 5d7231fb9b5096853c43f592ebf25415ca4001fa config.toml is (email redacted): ``` check_delay = 10000 [authentication] email = "myusername@gmail.com" aas_token = "" [download] locale = "en" download_devices = ["px_9a"] target_directory = "{package}/{version}" skip_existing = true lax = false ``` command output (token redacted): ``` $ RUST_BACKTRACE=full gplay-dl login oauth2_4/... thread 'main' (152309) panicked at src/main.rs:133:70: called `Result::unwrap()` on an `Err` value: Error { kind: Authentication } stack backtrace: 0: 0x721070e13bd2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::haafde1746b0646ac 1: 0x721070e42917 - core::fmt::write::h1516f398307189eb 2: 0x721070df19b6 - std::io::Write::write_fmt::h80f5b0125355cbc7 3: 0x721070dfb7a6 - std::panicking::default_hook::{{closure}}::hc8a22fe5717096aa 4: 0x721070dfb606 - std::panicking::default_hook::h4d533e257cc8a9d4 5: 0x721070dfb9eb - std::panicking::panic_with_hook::hc9fb5f48ab261992 6: 0x721070dfb868 - std::panicking::panic_handler::{{closure}}::h8d9b00e794b9f500 7: 0x721070df8e89 - std::sys::backtrace::__rust_end_short_backtrace::h38441692b60c522e 8: 0x721070de5e1d - __rustc[d131491b17107b07]::rust_begin_unwind 9: 0x7210708a77dc - core::panicking::panic_fmt::h0765f55a1f6f6e1e 10: 0x7210708a74c2 - core::result::unwrap_failed::ha2ac3d384275b895 11: 0x72107093084e - gplay_dl::main::h43edf36e5f47a06d 12: 0x721070964c53 - std::sys::backtrace::__rust_begin_short_backtrace::h35d0e6a40a3fcdf6 13: 0x721070961d09 - std::rt::lang_start::{{closure}}::h832747f59d48ae9e 14: 0x721070df33fc - std::rt::lang_start_internal::h4ef3455d773bd052 15: 0x721070931065 - main ```
Owner

Thank you for the details!

I cannot reproduce this on my own account, so this might be something new, or perhaps unrelated. I have published v0.1.0-git.8b47bf8, which will log the Google Play response along with the crash, hopefully that tells us something.

Also, if you happen to have an Android device, did you test whether this account works with Aurora Store? If you do not have one, you could try Waydroid, though I remember it's a bit of a pain to set up.

Thank you for the details! I cannot reproduce this on my own account, so this might be something new, or perhaps unrelated. I have published [v0.1.0-git.8b47bf8](https://git.stary.pc.pl/Grzesiek11/gplay-dl/releases/tag/v0.1.0-git.8b47bf8), which will log the Google Play response along with the crash, hopefully that tells us something. Also, if you happen to have an Android device, did you test whether this account works with Aurora Store? If you do not have one, you *could* try [Waydroid](https://waydro.id), though I remember it's a bit of a pain to set up.
Author

Thank you for the debug build, @Grzesiek11. It worked. But the previous release worked fine today too. Apparently there was some glitch yesterday, because today I got the AAS token using gplay-dl for both the Google accs I tried and failed yesterday.
Thanks a lot for your support. Much appreciated.

Thank you for the debug build, @Grzesiek11. It worked. But the previous release worked fine today too. Apparently there was some glitch yesterday, because today I got the AAS token using gplay-dl for both the Google accs I tried and failed yesterday. Thanks a lot for your support. Much appreciated.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Grzesiek11/gplay-dl#1
No description provided.