Confuzu / CivitAI_Image_grabber

Downloads every Image from a given CivitAi Username / Model ID / Model TAG / Model versionID
GNU General Public License v3.0
35 stars 3 forks source link

Multiple usernames no longer work #20

Closed Nobrumski closed 5 months ago

Nobrumski commented 5 months ago

Guessing they changed the API, but as of now multiple usernames no longer work. They immediately fail and report all usernames unknown. Nothing is showing in the logs either.

Not sure if there is another way to use some sort of queue system.

Confuzu commented 5 months ago

i tried the multiple usernames and it works. The multiple usernames function has nothing to do with the API its a script function. Tried it with 3 usernames iworld, Goopolhavy, celulari
2342342342342323424242423423423423423

Nobrumski commented 5 months ago

Thanks for checking, I couldn't get any multiple users to complete last night. Wonder if the API is just kicking out the same error for another reason or failing somehow on their end to find the username. I was essentially using the same settings except for HD over SD and then it would take 20 seconds or so and report all 4,3, and then 2 usernames as unknown. Other than one username, all the rest would complete fine when I ran them immediately after as single usernames. It did this every time I attempted it last night and it has been about 2 weeks since I last ran it.

If they had just failed by themself, I would have assumed they possibly had no new images. I wonder if it is running into a timeout issue when checking the Json against what the API returns.

Nobrumski commented 5 months ago

This is what I see taken just now

Screenshot 2024-05-21 170111

Screenshot 2024-05-21 170505

Confuzu commented 5 months ago

it is always an API timeout. I have increased the standard timeout to 30 sec and added a header. In case it doesn't work again, set the timeout higher. The run takes longer but it worked in my tests