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

AUTH_BYTES_INVALID on parallel download of files #1213

Closed
sadfun opened this issue Oct 13, 2023 · 0 comments · Fixed by #1302
Closed

AUTH_BYTES_INVALID on parallel download of files #1213

sadfun opened this issue Oct 13, 2023 · 0 comments · Fixed by #1302
Labels
bug Something isn't working

Comments

@sadfun
Copy link

sadfun commented Oct 13, 2023

What version of gotd are you using?

github.com/gotd/td v0.80.0

Can this issue be reproduced with the latest version?

Yes

What did you do?

We have an application running multiple gotd clients with different accounts. When we try to download multiple files in parallel, using *downloader.Downloader and .Parallel(), it sometimes can throw this error:

get file: get next chunk: create connection to DC 2: transfer: import from 2: invoke pool: rpcDoRequest: rpc error code 400: AUTH_BYTES_INVALID

We tried 3 approaches:

  1. Using one global downloader to download everything
  2. Using one downloader per gotd client
  3. Creating new downloader for each download

All of these approaches fails with the same error.

What did you expect to see?

Files downloading without errors.

What did you see instead?

get file: get next chunk: create connection to DC 2: transfer: import from 2: invoke pool: rpcDoRequest: rpc error code 400: AUTH_BYTES_INVALID

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

Successfully merging a pull request may close this issue.

1 participant