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

[email protected]: download via aria2 failed #865

Open
cscnk52 opened this issue Jul 16, 2024 · 6 comments
Open

[email protected]: download via aria2 failed #865

cscnk52 opened this issue Jul 16, 2024 · 6 comments

Comments

@cscnk52
Copy link
Contributor

cscnk52 commented Jul 16, 2024

ERROR Download failed! (Error 22) HTTP response header was bad or unexpected
ERROR https://cdn.aliyundrive.net/downloads/apps/desktop/update/6.0.0/win32/ia32/aDrive-6.0.0.exe#/aDrive-6.0.0.7z
referer=https://cdn.aliyundrive.net/downloads/apps/desktop/update/6.0.0/win32/ia32/aDrive-6.0.0.exe#/
dir=C:\scoop\cache
out=aliyundrive#6.0.0#67baabb.7z

ERROR & 'C:\scoop\apps\aria2\current\aria2c.exe' --input-file='C:\scoop\cache\aliyundrive.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/7.4 (Windows NT 10.0; Win64; x64; Core)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=14712 --continue --summary-interval=0 --auto-save-interval=1

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/chawyehsu/dorado/issues/new?title=aliyundrive%406.0.0%3a+download+via+aria2+failed

Copy link
Contributor

You are right. Thank you for reporting.

Following URLs are not accessible:

@socratesng
Copy link

socratesng commented Sep 13, 2024

For the latest version in the bucket (6.3.2), the correct installation file can be download from
https://cdn.aliyundrive.net/downloads/apps/desktop/aDrive-6.3.2.exe
instead of
https://cdn.aliyundrive.net/downloads/apps/desktop/update/6.3.2/win32/ia32/aDrive-6.3.2.exe

It seems reasonable to remove "/update/$version/win32/ia32" from the "url" properties in the manifest.

@cscnk52
Copy link
Contributor Author

cscnk52 commented Sep 13, 2024

absolute yes!
I encountered this issue a few days ago as well, and I'm currently working on maintaining my own manifest for AliyunDrive. However, it seems there's no effective way to handle the blocking caused by the referer.

https://github.com/cscnk52/cetacea/blob/7cafeeabc94f72aa73be66990391ff8e70687370/bucket/aliyundrive.json
cscnk52/cetacea#6 (in chinese)

or you can trying to making a PR to fix this issue, enjoy!

@socratesng
Copy link

I'm not familiar with scoop or web. Can't help with fixing the issue, T_T

But by checking the existing manifest, it seems refer is not needed, which is also evident when I just paste and open the download link in another browser successfully.

@cscnk52
Copy link
Contributor Author

cscnk52 commented Sep 15, 2024

TL;DR

after download aDrive.exe from official website, if you scoop's aria2 is enabled, you can find the download file name in log, just simply rename aDrive.exe to aliyundrive#6.3.3#80771de.7z(shown as picture), and place file in $SCOOP/cache, copying following code, and enjoy !

image

scoop bucket add cetacea https://github.com/cscnk52/cetacea
scoop install cetacea/aliyundrive

why?

because as what i said, the cdn of aliyundrive forbidden downloading with referer(See cscnk52/cetacea#6), but seem like scoop's download only support download with referer, i am work on this issue, after fix this issue, i will making a PR to this repo. and seem like checkver of dorado/aliyundrive is not timely, i will fix it in below PR too.

@socratesng
Copy link

I see. Many thanks for the ad-hoc solution.

I actually need to disable aria2 to successfully (directly) load the 7z file from the cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants