Git Product home page Git Product logo

Comments (14)

RikudouSage avatar RikudouSage commented on July 22, 2024 2

Well, now the endpoint returns 404.

from civitai.

Synchronos avatar Synchronos commented on July 22, 2024 2

Specifically whatever is assembling the JSON in the civit.ai API is incorrectly repeating the first modelVersion instead of the correct values.

curl https://civitai.com/api/v1/models/36281 -H "Content-Type: application/json" -X GET

If you examine the JSON all 4 items in the modelVersions array are identical.

I did spend a little time digging in the repository and it might be worth looking at getModelsRaw in src/server/services/model.service.ts. It's got changes in the past few days and a // } hanging out that makes me think maybe something didn't get finished? The equivalent controller.ts code path doesn't get the information the same way, which may explain why the web isn't broken when the API is. Hope this helps...

from civitai.

Heather95 avatar Heather95 commented on July 22, 2024 2

The issue seems fixed now as of this morning.

from civitai.

manuelurenah avatar manuelurenah commented on July 22, 2024 2

@RikudouSage It has been fixed already

from civitai.

BlafKing avatar BlafKing commented on July 22, 2024

Having the same issue, this also happens for any general model requests, so all results when using https://civitai.com/api/v1/models for example also return only one version.

from civitai.

RedFoxNightfox avatar RedFoxNightfox commented on July 22, 2024

can confirm with using API through a1111 webui with sd-civitai-browser-plus extension that only latest model gets reported.

from civitai.

zixaphir avatar zixaphir commented on July 22, 2024

I think this has been an issue since about 7PM GMT yesterday. I was actively writing changes for the new NSFW categories when it occurred, so I had assumed something in my code had broken. I was testing on a model with several versions and all the versions had been showing up, but after making some changes to my code, I made a fresh API call and it only returned the most recent model version. I hope this helps find what deployed code caused this issue.

from civitai.

AA-Developer avatar AA-Developer commented on July 22, 2024

The problem also appears when filtering the result by user name

https://civitai.com/api/v1/models?limit=10&sort=Newest&username=True_Might&page=1

Even with the addition
&browsingLevel=0
The message appears
{"error":{"issues":[{"code":"invalid_type","expected":"number","received":"string","path":["browsingLevel"],"message":"Expected number, received string"}],"name":"ZodError"}}

The API system has effectively stopped doing what it should
Some models information, such as the update date, also disappeared
I was also surprised that the meta image data disappeared and now had to be retrieved from the images API

from civitai.

ChiaYen-Kan avatar ChiaYen-Kan commented on July 22, 2024

i also same problem, when use model api is can't get all model version information, only last version can be get
i use the urllib of python to get information is also same problem

from civitai.

trdahl avatar trdahl commented on July 22, 2024

Instead of writing it happends to me to, let us just hope that the developer find a solution to our problem, because i bet its as much frustrating for you as for me ... now we just have to wait

from civitai.

manuelurenah avatar manuelurenah commented on July 22, 2024

Thank you everyone for raising this issue, we have already pushed new changes that fixed this issue. I'll be closing this, but feel free to open it again if you ever find any problems with this endpoint

from civitai.

RikudouSage avatar RikudouSage commented on July 22, 2024

@manuelurenah This issue is still not fixed, for example https://civitai.com/api/v1/models/92008 vs https://civitai.com/models/92008

from civitai.

manuelurenah avatar manuelurenah commented on July 22, 2024

Good catch @RikudouSage this is a different issue, related but not the same. We'll look into this, thanks!

from civitai.

RikudouSage avatar RikudouSage commented on July 22, 2024

@manuelurenah Great! Can you reopen the issue, or shall I create a new one?

from civitai.

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.