Giter VIP home page Giter VIP logo

Comments (5)

BlafKing avatar BlafKing commented on August 11, 2024

Not really a bug imo.
You're reporting a timeout error, which is really just something caused by your connection or by the CivitAI servers.

When you include a model ID in the API request that no longer exists, then the API request still works fine and automatically excludes the missing model, partitioning the chunked models into smaller ones won't resolve that issue.

There might currently not be a retry function in place that retries when a request times out, which might help solve this issue so I'll look into that.

About the model not found prints being obnoxious, feel free to turn them off in the settings, or if you'd like to see different behavior regarding the prints, feel free to make a pull request as I personally like the current behavior of prints.

Closed for not being a bug.

from sd-civitai-browser-plus.

silveroxides avatar silveroxides commented on August 11, 2024

I am reporting a timeout error that happens at the same point every time which results in all of the other models (brand spanking new ones) not getting updated. So yes it IS a bug.
Or why would it miss several newly downloaded model.
Note that I download them externally from Civitai and not from the extension download tab since I find that too clunky to use effiecently and since it does not support tabbing(not that it could) for looking at models later. I usually scroll through about 50 models and open a bunch in tabs which I go through in batches.

But after going through your code I can see why some things work as they do. Rare to see that many 'if' statements nowadays.

from sd-civitai-browser-plus.

BlafKing avatar BlafKing commented on August 11, 2024

You're free to not use this extension if you don't like it :,)
It's my first python project, so yeah, the code is an absolute mess 🧠

Tried the URL you mentioned in the bug report, which is working fine for me which is why I assumed the extension to not inherently be at fault, of course the other behavior when it fails is far from ideal.
I'll try to experiment some more, but I assume the solution will be increasing the timeout time or retrying the URL if it times out instead of moving on after it fails once, which I'll implement if I have some free time to work on this extension again.

from sd-civitai-browser-plus.

silveroxides avatar silveroxides commented on August 11, 2024

image
Is this the option you meant. Cause that was off. The only other one I see is the one that disables model not found but that is in the browser options section. I get the timeout at API request 6 of 14.
My max downloads was set to 36. Changed to 32 and it worked. So something about that specific batch was the issue and looking at it, it might be some edge case of not being able to handle the modelid of the first one or something.

EDIT: Yup all previews updated. Either it was the thing I wrote above about edge case or I was rate limited by civitai.

from sd-civitai-browser-plus.

BlafKing avatar BlafKing commented on August 11, 2024

Good to know, thanks for the extra info.

I was indeed referring to the "model not found print" option in the browser options location, still trying to guess which setting should go in which category, so not exactly sure if it's current place is intuitiveπŸ˜…

Also the Number of connections to use for downloading a model option only applies to Aria2, which is only used for downloading the actual model itself, not for preview updates, so afaik changing that setting shouldn't affect the updating of any previews.

I'm assuming it might be a rate limit by CivitAI, or something else to do with CivitAI their servers taking longer than usual, so I'll implement some more checks regarding unresponsive servers, so that it either retries or waits a bit longer for a response πŸ‘πŸ»

from sd-civitai-browser-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.