DepotDownloader icon indicating copy to clipboard operation
DepotDownloader copied to clipboard

Chinese CDNs require authentication (Encountered 403 for depot manifest)

Open huddhudd opened this issue 1 year ago • 18 comments

What did you expect to happen?

dotnet DepotDownloader.dll -app 578080 -depot 578081 -username huddcc2 -password [REDACTED] Connecting to Steam3... Done! Logging 'huddcc2' into Steam3...Lost connection to Steam. Reconnecting Done! Logging 'huddcc2' into Steam3... Done! Using Steam3 suggested CellID: 204 Got 102 licenses for account! Got AppInfo for 578080 Using app branch: 'Public'. Got depot key for 578081 result: OK Processing depot 578081 - Downloading depot manifest...Got manifest request code for 578081 1224926623952854117 result: 16311532807010240413 Encountered 401 for depot manifest 578081 1224926623952854117. Aborting.

Unable to download manifest 1224926623952854117 for depot 578081 App 578080 was not completely downloaded. The operation was canceled. Disconnected from Steam

Instead of that, what actually happened?

Encountered 401 for depot manifest 578081 1224926623952854117. Aborting.

Unable to download manifest 1224926623952854117 for depot 578081

Which operating system are you running on?

Windows

Version

6

Relevant log output

No response

Additional Information

No response

huddhudd avatar Apr 21 '23 05:04 huddhudd

What version of DepotDownloader are you using?

yaakov-h avatar Apr 21 '23 05:04 yaakov-h

I have the same issue both in 2.4.5 and 2.4.7

shaoyy avatar Apr 21 '23 13:04 shaoyy

Are you in China?

xPaw avatar Apr 26 '23 09:04 xPaw

It seems Chinese cdn verify problem for : dl.steam.clngaa.com st.dl.bscstorage.net trts.baishancdnx.cn xz.pphimalayanrt.com

Example: http://dl.steam.clngaa.com/depot/1956801/chunk/f76d1d765ff2f573704e36deae1973af399c79ad Return: 403 Forbidden

Issue: #381

I think we should add a option to specify the cdn or fix that auth problem.

oureveryday avatar Apr 30 '23 07:04 oureveryday

Are you in China?

Yes.

shaoyy avatar May 08 '23 06:05 shaoyy

Is it so difficult that only China has this problem? I am also in China

huddhudd avatar May 09 '23 07:05 huddhudd

Is it so difficult that only China has this problem? I am also in China

Specify the cdn with this tool works https://www.dogfight360.com/blog/1531/

oureveryday avatar May 13 '23 11:05 oureveryday

I'm located in the USA and I'm also having this issue. but my commandline output looks very slightly different:

Connecting to Steam3... Done! Logging 'user' into Steam3... Done! Using Steam3 suggested CellID: 84 Got 75 licenses for account! Got AppInfo for 225540 Using app branch: 'Public'. Got depot key for 225543 result: OK Processing depot 225543 - Downloading depot manifest...Got CDN auth token for edge.steam-dns.top.comcast.net result: OK (expires 5/28/2023 10:55:50 PM) Encountered 401 for depot manifest 225543 8731387993101941680. Aborting.

Unable to download manifest 8731387993101941680 for depot 225543 App 225540 was not completely downloaded. The operation was canceled. Disconnected from Steam

SlyCooperReloadCoded avatar May 28 '23 19:05 SlyCooperReloadCoded

Unable to download manifest 8731387993101941680 for depot 225543 Nope it's manifest download problem, not depot download problem.

oureveryday avatar Jun 05 '23 09:06 oureveryday

Well that explains it. Whoops! DepotDownloader is nearly unusable because of it though, and the error looked the same, my bad.

SlyCooperReloadCoded avatar Jun 05 '23 13:06 SlyCooperReloadCoded

I found solution with getCDNAuthToken:

https://github.com/oureveryday/DepotDownloaderMod/commit/41a6643ee5d95ae22dfb1e85a878188fe1b5a0ce#diff-cf884562ffdbac18ff558199aced1cbbd97073e395420c4eab7fafd4fa01a783 ContentDownloader.cs https://github.com/oureveryday/DepotDownloaderMod/commit/3328e4a1e7bee7f8a4c44902db0711a7bd544faf#diff-b168c995428592786250377fd00708c21800c97badec332b50e6fec21bba95e3 Steam3Session.cs https://github.com/oureveryday/DepotDownloaderMod/commit/3328e4a1e7bee7f8a4c44902db0711a7bd544faf#diff-602e52db7afbaf743c4e153ca87623d4bb6d916ae003a74545e91438a0192233 SteamKit2/Steam/CDN/Client.cs

oureveryday avatar Jun 05 '23 13:06 oureveryday

I'll try it tomorrow. Has anyone tried it

huddhudd avatar Jun 06 '23 15:06 huddhudd

I'll try it tomorrow. Has anyone tried it

https://github.com/oureveryday/DepotDownloaderMod/releases/tag/DepotDownloaderMod_2.4.5.6

Release executable

oureveryday avatar Jun 06 '23 15:06 oureveryday

I'll try it tomorrow. Has anyone tried it

https://github.com/oureveryday/DepotDownloaderMod/releases/tag/DepotDownloaderMod_2.4.5.6

Release executable

i tried to compile a linux_x64 version myself and it doesn't work now (using cdn: dl.steam.clngaa.com) is the auth method had updated recently?

here's log of running DepotDownloaderMod [ContentDownloader] Downloading manifest 5455816397127617533 from dl.steam.clngaa.com:80 (CDN) with no proxy 09:49:02.3955401 System.Net.Http.RequestStart(scheme: http, host: dl.steam.clngaa.com, port: 80, pathAndQuery: /depot/304935/manifest/5455816397127617533/5/5634478437616273272, versionMajor: 1, versionMinor: 1, versionPolicy: 0) 09:49:02.3961856 System.Net.Sockets.ConnectStart(address: InterNetwork:16:{42,57,192,168,100,210,0,0,0,0,0,0,0,0}) 09:49:02.3973316 System.Net.Sockets.ConnectStop() 09:49:02.3974324 System.Net.Http.ConnectionEstablished(versionMajor: 1, versionMinor: 1) 09:49:02.3976041 System.Net.Http.RequestLeftQueue(timeOnQueueMilliseconds: 1.6435, versionMajor: 1, versionMinor: 1) 09:49:02.3976851 System.Net.Http.RequestHeadersStart() 09:49:02.3981472 System.Net.Http.RequestHeadersStop() 09:49:03.4429794 System.Net.Http.ResponseHeadersStart() 09:49:03.4501502 System.Net.Http.ResponseHeadersStop(statusCode: 403) 09:49:03.4502534 System.Net.Http.RequestStop(statusCode: 403) [CDN] Failed to complete web request to http://dl.steam.clngaa.com/depot/304935/manifest/5455816397127617533/5/5634478437616273272: Response status code does not indicate success: 403 (Forbidden). Encountered 401 for depot manifest 304935 5455816397127617533. Aborting.

Unable to download manifest 5455816397127617533 for depot 304935 App 304930 was not completely downloaded. The operation was canceled. [Steam3Session] Disconnected: bIsConnectionRecovery = False, UserInitiated = True, bExpectingDisconnectRemote = False Disconnected from Steam

Funny-ppt avatar Aug 04 '23 09:08 Funny-ppt

I'm also in China and I have a very similar issue:

Connecting to Steam3... Done!
Logging 'pluieuwu' into Steam3...
 Done!
Using Steam3 suggested CellID: 197
Got 161 licenses for account!
Got AppInfo for 22380
Using app branch: 'public'.
Got depot key for 72840 result: OK
Got depot key for 72760 result: OK
Got depot key for 72750 result: OK
Got depot key for 72740 result: OK
Got depot key for 72731 result: OK
Got depot key for 22475 result: OK
Got depot key for 22470 result: OK
Got depot key for 22465 result: OK
Got depot key for 22460 result: OK
Got depot key for 22393 result: OK
Got depot key for 22381 result: OK
Depot 22387) is not available from this account.
Got depot key for 22382 result: OK
Depot 22493) is not available from this account.
Got depot key for 72732 result: OK
Got depot key for 72742 result: OK
Got depot key for 72751 result: OK
Got depot key for 72761 result: OK
Got depot key for 72841 result: OK
Processing depot 72840
Downloading depot manifest...Got manifest request code for 72840 6228338984629967746 result: 5936469864761310292
Encountered 401 for depot manifest 72840 6228338984629967746. Aborting.

Unable to download manifest 6228338984629967746 for depot 72840
App 22380 was not completely downloaded.
The operation was canceled.
Disconnected from Steam

Maybe I should've gone with the GOG version after all...

pluiedev avatar Aug 09 '23 12:08 pluiedev

我明天试试。有人试过吗

https://github.com/oureveryday/DepotDownloaderMod/releases/tag/DepotDownloaderMod_2.4.5.6

发布可执行文件

文件安装在哪才能配对啊

JL-victor avatar Oct 23 '23 08:10 JL-victor