Closed cliffrowley closed 5 months ago
Strange, when I use wget it is able to fetch the model.... I will try to investigate more about this.
wget https://civitai.com/api/download/models/317633?token={api_key} --content-disposition
Edit:
This python code gives back status 200 too.. strange ` session = requests.session() res = session.get( f"https://civitai.com/api/download/models/317633", stream=True, headers=headers)
print(res.status_code) `
Ok I managed to figure out the reason why. It was because the program didn't expect CivitAI to send a 401 error for unauthorized models. The program expected CivitAI to redirect to a url with "reason=download-auth" in the url. This bug will be fixed in version 2.0.12 in a sec.
First time finding out that CivitAI is capable of throwing 401 errors lol
Wonderful, thanks!
I'm not sure why but some models refuse to download (even with an API key) and return a 401 error, despite being able to download them manually from the website directly.
For example:
I've tried waiting and retrying, even waiting a whole day just in case it's one of their weird proxy errors, but nada.