Skip to content

Timeouts when running commands #51

@HeyItsJono

Description

@HeyItsJono

Hey there, I'm excited to finally have an alternative to the sluggish web interface, but unfortunately many of these commands seem to just time out. Here's an example below (sensitive info has been replaced by placeholders).

jdcli download link list --device DEVICE--debug

2024-11-05T22:58:24.170+1100    DEBUG   jdownloader/client.go:235       POST https://api.jdownloader.org/my/connect?email=EMAIL&appkey=jdcli&rid=1&signature=938c63ea23446a02652a4c936a000c98f7ba75f3bf34c442eb11b972257d419a @ 1
2024-11-05T22:58:25.776+1100    DEBUG   jdownloader/client.go:248       HTTP200 @ 1
2024-11-05T22:58:25.777+1100    DEBUG   jdownloader/client.go:235       GET https://api.jdownloader.org/my/listdevices?sessiontoken=TOKEN&rid=2&signature=cd01d092f9817bc34cad9c5ca38051268365b3aa07c1e267e65437955b671db6 @ 2
2024-11-05T22:58:26.162+1100    DEBUG   jdownloader/client.go:248       HTTP200 @ 2
2024-11-05T22:58:26.163+1100    DEBUG   jdownloader/client.go:235       POST https://api.jdownloader.org/t_TOKEN_c9dcac34920f7ef91076d51c25973393/downloadsV2/queryLinks @ 3
2024-11-05T22:58:27.846+1100    DEBUG   jdownloader/client.go:248       HTTP200 @ 3
2024-11-05T22:58:56.164+1100    DEBUG   jdownloader/client.go:235       POST https://api.jdownloader.org/my/disconnect?sessiontoken=TOKEN&rid=4&signature=3f4a8bfbdc123e9042c9d160646fa65c01ad122e4bab84b2ca5197cc9c06bc58 @ 4
2024-11-05T22:58:56.557+1100    DEBUG   jdownloader/client.go:248       HTTP200 @ 4
Error: unable to fully consume response body: context deadline exceeded (Client.Timeout or context cancellation while reading body)
Usage:
  jdcli download link list [flags]

Flags:
      --debug           Debugging flag
      --device string   Device name to use for this operation
  -h, --help            help for list

panic: unable to fully consume response body: context deadline exceeded (Client.Timeout or context cancellation while reading body)

goroutine 1 [running]:
main.main()
        /home/runner/work/jdownloader-cli/jdownloader-cli/cmd/cli.go:26 +0x56

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions