Skip to content
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

[Bug] Unable to log in and download #677

Closed
nikkoozz opened this issue Jul 11, 2024 · 6 comments
Closed

[Bug] Unable to log in and download #677

nikkoozz opened this issue Jul 11, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@nikkoozz
Copy link

nikkoozz commented Jul 11, 2024

Describe the bug

之前用过 没有任何问题,最近报错无法使用
用了代理,环境变量里设置 TDL_PROXY = socks5://localhost:10808 TDL_NS = admin
以下分别是登录下载的报错情况:

To Reproduce

tdl login -d "D:\soft\Telegram Desktop"
Error: decrypt keyEncrypted:
github.com/gotd/td/session/tdesktop.readKeyData
github.com/gotd/td@v0.105.0/session/tdesktop/key_data.go:33

  • msg_key mismatch:
    github.com/gotd/td/session/tdesktop.decryptLocal
    github.com/gotd/td@v0.105.0/session/tdesktop/local_key.go:67

tdl dl -u https://t.me/xxx/1 -d "D:\Downloads"
Error: create client:
github.com/iyear/tdl/cmd.tRun
github.com/iyear/tdl/cmd/root.go:159

  • create network clock:
    github.com/iyear/tdl/core/tclient.New
    github.com/iyear/tdl/core@v0.0.0-00010101000000-000000000000/tclient/tclient.go:47
  • read udp 192.168.0.106:54775->108.59.2.24:123: i/o timeout

Expected behavior

正常使用

Version

0.17.3

Which OS are you running tdl on?

Windows

Additional context

No response

@nikkoozz nikkoozz added the bug Something isn't working label Jul 11, 2024
@nikkoozz
Copy link
Author

电脑登录tg后,再用tdl下载报错:
Error: callback:
github.com/gotd/td/telegram.(*Client).Run.func3
github.com/gotd/td@v0.105.0/telegram/connect.go:151

  • not authorized. please login first

@celiae
Copy link

celiae commented Aug 8, 2024

再次运行报此错,尝试了切换tun模式就又行了

@shaoyangx
Copy link

电脑登录tg后,再用tdl下载报错: Error: callback: github.com/gotd/td/telegram.(*Client).Run.func3 github.com/gotd/td@v0.105.0/telegram/connect.go:151

  • not authorized. please login first

我也是同样的报错,即使从新登陆在下载也不行。

@iyear
Copy link
Owner

iyear commented Sep 17, 2024

not authorized. please login first Perform the login operation again.

@iyear iyear closed this as completed Sep 17, 2024
@nikkoozz
Copy link
Author

nikkoozz commented Oct 3, 2024

I found the reason, it was caused by setting the lock screen password for the desktop client, I hope the author can optimize it in the future, thanks!

@iyear
Copy link
Owner

iyear commented Oct 3, 2024

@nikkoozz If you set the desktop client passcode, you should set flags: tdl login -p YOUR_PASSCODE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants