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] Commands tdl dl -u and tdl login -T qr Do Not Execute #615

Open
YooPita opened this issue May 15, 2024 · 6 comments
Open

[Bug] Commands tdl dl -u and tdl login -T qr Do Not Execute #615

YooPita opened this issue May 15, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@YooPita
Copy link

YooPita commented May 15, 2024

Describe the bug

When attempting to use the tdl tool with the commands tdl dl -u https://t.me/telegram/193 or tdl login -T qr, nothing happens. The cursor simply blinks, and the commands do not produce any output or perform any visible action.

To Reproduce

Open the console.
Enter the command tdl login -T qr.
Observe that the cursor blinks, and no further output or action occurs.

Expected behavior

login or download chat

Version

Version: 0.17.0
Commit: 95120c0
Date: 2024-04-21T14:07:16Z

go1.21.9 windows/amd64

Which OS are you running tdl on?

Windows

Additional context

It's possible that there may be an issue with existing tdl data, but I am unsure how to delete or reset this data to test if it resolves the issue.

I used the debug flag but it didn't work

@YooPita YooPita added the bug Something isn't working label May 15, 2024
@YooPita
Copy link
Author

YooPita commented May 15, 2024

I waited until the program finished running and this is what I got:

C:\Users\user>tdl dl -u https://t.me/telegram/193
Error: group:
    github.com/gotd/td/mtproto.(*Conn).Run
        github.com/gotd/[email protected]/mtproto/conn.go:214
  - task userCallback:
    github.com/gotd/td/tdsync.(*LogGroup).Go.func1
        github.com/gotd/[email protected]/tdsync/log_group.go:48
  - initConnection:
    github.com/gotd/td/telegram/internal/manager.(*Conn).init
        github.com/gotd/[email protected]/telegram/internal/manager/conn.go:230
  - invoke:
    github.com/gotd/td/telegram/internal/manager.(*Conn).init.func1
        github.com/gotd/[email protected]/telegram/internal/manager/conn.go:221
  - rpcDoRequest:
    github.com/gotd/td/mtproto.(*Conn).Invoke
        github.com/gotd/[email protected]/mtproto/rpc.go:44
  - retryUntilAck:
    github.com/gotd/td/rpc.(*Engine).Do
        github.com/gotd/[email protected]/rpc/engine.go:141
  - retry limit reached after 1 attempts

@StarTaleLife
Copy link

you need proxy

@YooPita
Copy link
Author

YooPita commented May 20, 2024

you need proxy

>tdl login -T qr --proxy socks5://31.170.22.127:1080
WARN: If data exists in the namespace, data will be overwritten
Error: group:
    github.com/gotd/td/mtproto.(*Conn).Run
        github.com/gotd/[email protected]/mtproto/conn.go:214
  - task userCallback:
    github.com/gotd/td/tdsync.(*LogGroup).Go.func1
        github.com/gotd/[email protected]/tdsync/log_group.go:48
  - initConnection:
    github.com/gotd/td/telegram/internal/manager.(*Conn).init
        github.com/gotd/[email protected]/telegram/internal/manager/conn.go:230
  - invoke:
    github.com/gotd/td/telegram/internal/manager.(*Conn).init.func1
        github.com/gotd/[email protected]/telegram/internal/manager/conn.go:221
  - rpcDoRequest:
    github.com/gotd/td/mtproto.(*Conn).Invoke
        github.com/gotd/[email protected]/mtproto/rpc.go:44
  - retryUntilAck:
    github.com/gotd/td/rpc.(*Engine).Do
        github.com/gotd/[email protected]/rpc/engine.go:141
  - retry limit reached after 1 attempts

I tested the proxy in the telegram client and everything worked, but not in the console

@iyear
Copy link
Owner

iyear commented Sep 16, 2024

Can you try v0.17.4?

@ghost
Copy link

ghost commented Sep 20, 2024

I'm facing the same issue as well. tried on v0.17.4

@iyear
Copy link
Owner

iyear commented Sep 30, 2024

The issue is mostly caused by network errors, and I can hardly reproduce it locally.

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

3 participants