Rclone http Alldebrid - Unsolicited response received on idle HTTP

Hello, i'd like to use Rclone with Alldebrid and the myfiles features (debrids links view like on an http file server) to integrate it on plex.
I use the command : rclone ls --http-url https ://myfiles.alldebrid.com/XXXXXXX/links/ :http:

But I have a lot of errors like this :
2021/01/30 16:53:42 Unsolicited response received on idle HTTP channel starting with
"\x1aEߣ\xa3B\x86\x81\x01B\xf7\x81\x01B\xf2\x81\x04B\xf3\x81\bB\x82\x88matroskaB\x87\x81\x04B\x85\x81\x02\x18S\x80g\x01\x00\x00\r6\xdd`,\x11M\x9bt\xd1M\xbb\x8cS\xab\x84\x15I\xa9fS\xac\x82\x10\x03M\xbb\x8cS\xab\x84\x16T\xaekS\xac\x82\x10\x84M\xbb\x8fS\xab\x84\x1cS\xbbkS\xac\x85\r6ٱ\xe3M\xbb\x8fS\xab\x84\x12T\xc3gS\xac\x85\r6\xddW\xdbM\xbb\x8cS\xab\x84\x10C\xa7pS\xac\x82\x16\xac\xecO\xaa\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0

I can't view all th http files. 10% of the files produce this error.
When I execute the command several time, i've got same error but not on the sames files.

These errors are normally harmless - it is a slight mis-match in HTTP protocol.

That looks like it is a video file though which is odd.

Hmm...

Try with -vv --dump headers and see if that gives you any clues.

I suspect something odd about the server.

I test the dump header, the result :

2021/02/01 15:02:51 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/02/01 15:02:52 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/02/01 15:02:52 DEBUG : HTTP REQUEST (req 0xc000222f00)
2021/02/01 15:02:52 DEBUG : HEAD /dl/2XXXXXXf/Movie.mkv HTTP/1.1
Host: 12ps6z.debrid.it
User-Agent: rclone/v1.53.4
Referer: https:// myfiles. alldebrid. com/XXXXX/magnets/Movie.mkv

2021/02/01 15:02:52 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/02/01 15:02:53 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/02/01 15:02:53 DEBUG : HTTP RESPONSE (req 0xc0001e1a00)
2021/02/01 15:02:53 DEBUG : HTTP/1.0 200 OK
Content-Length: 8391721619
Accept-Ranges: bytes
Connection: Keep-Alive
Content-Disposition: attachment
Content-Type: application/octet-stream
Date: Mon, 01 Feb 2021 18:02:51 GMT
Keep-Alive: timeout=10
Last-Modified: Sat, 16 Jan 2021 20:13:16 GMT
Server: Nginx
X-Powered-By: PHP

2021/02/01 15:02:53 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/02/01 15:02:53 Unsolicited response received on idle HTTP channel starting with "\x1aEߣ\xa3B\x86\x81\x01B\xf7\x81\x01B\xf2\x81\x04B\xf3\x81\bB\x82\x88matroskaB\x87\x81\x04B\x85\x81\x02\x18S\x80g\x01\x00\x00\x01\xf4/\x82_\x11M\x9btֿ\x84u\xbc\xc7\xf7M\xbb\x8bS\xab\x84\x15I\xa9fS\xac\x81\xe5M\xbb\x8cS\xab\x84\x16T\xaekS\xac\x82\x01MM\xbb\x8cS\xab\x84\x12T\xc3gS\xac\x82\vrM\xbb\x8fS\xab\x84\x10C\xa7pS\xac\x85\x01\xf4,ڬM\xbb\x8fS\xab\x84\x1cS\xbbkS\xac\x85\x01\xf4,\xe2\x90\xec\x01\x00\x00\x00\x00\x00\x00\x81\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15I\xa9f㿄X\xba\xa5\xd9*ױ\x83\x0fB@M\x80\x8dLavf58.29.100WA\x9aHandBrake 1.3.0 019110900s\xa4\x90\x91\x9dQM\x1a\xac\x95\x89x`-\xdd\xc5\a=\xc6Da\x88\bL\xd8\xf2\xd4\xf5\xd8\x00D\x89\x88AV\u07bd\x80\x00\x00\x00\x16T\xaekJ\x1f\xbf\x84\x95S\x9eM\xae\x01\x00\x00\x00\x00\x00\b\xfeׁ\x01sŁ\x01\x9c\x81
\x00"\xb5\x9c\x83und\x86\x90V_MPEGH/ISO/HEVC\x83\x81\x01#ツ\x02|k-\ ...... "; err=
2021/02/01 15:02:53 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/02/01 15:02:53 DEBUG : HTTP REQUEST (req 0xc0000b9500)
2021/02/01 15:02:53 DEBUG : HEAD /dl/2xxxxx4e/Movie.mkv HTTP/1.1
Host: 12ps6z.debrid.it
User-Agent: rclone/v1.53.4
Referer: https:// myfiles. alldebrid. com /xxxxx/magnets/Movie.mkv

Like if it return a GET and not a HEAD.

When the request is good, i have this result :

2021/02/01 15:02:42 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/02/01 15:02:43 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/02/01 15:02:43 DEBUG : HTTP RESPONSE (req 0xc000689000)
2021/02/01 15:02:43 DEBUG : HTTP/2.0 302 Found
Connection: close
Alt-Svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
Cf-Cache-Status: DYNAMIC
Cf-Railgun: 76b4e540b9 stream 0.000000 0202 57da
Cf-Ray: 61ad95c27acf0746-FRA
Cf-Request-Id: 08005bed8e000007463985e000000001
Content-Type: text/html; charset=UTF-8
Date: Mon, 01 Feb 2021 18:02:43 GMT
Expect-Ct: max-age=604800, report-uri="https ://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Location: https:// 0eorev.debrid.it/dl/2XXXX4/Movie.mkv
Server: cloudflare
Set-Cookie: __cfduid=d57c89db9bbff2c418fa4c08d4f457b791612202562; expires=Wed, 03-Mar-21 18:02:42 GMT; path=/; domain= .alldebrid.com; HttpOnly; SameSite=Lax

I see the problem...

Rclone did a HEAD request

But the server replied with the entire body for some reason

You can try this flag

  --http-no-head                Don't use HEAD requests to find file sizes in dir listing

To see if that helps. Rclone will no longer know the sizes of the files it is copying but it will no longer make HEAD requests.

With --htt-no-head, there is no error, but whit this option plex doesn't view files.

Hmm, that will be because you are trying to look at them in a mount I think.

You'll be able to copy the files with that flag.

Can you ask the provider about HEAD requests returning the whole file? That is a bug, definitely!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.