Comments (14)
Well, now the endpoint returns 404.
from civitai.
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.
The issue seems fixed now as of this morning.
from civitai.
@RikudouSage It has been fixed already
from civitai.
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.
can confirm with using API through a1111 webui with sd-civitai-browser-plus extension that only latest model gets reported.
from civitai.
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.
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.
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.
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.
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.
@manuelurenah This issue is still not fixed, for example https://civitai.com/api/v1/models/92008 vs https://civitai.com/models/92008
from civitai.
Good catch @RikudouSage this is a different issue, related but not the same. We'll look into this, thanks!
from civitai.
@manuelurenah Great! Can you reopen the issue, or shall I create a new one?
from civitai.
Related Issues (20)
- [Bug]: `nsfw` parameter/return broken on Public API HOT 2
- [Bug]: image API is not returning images at requested nsfw level HOT 1
- [Bug]: API /model does not list my favorited models
- [Bug]: API `models` endpoint drops first model on pagination HOT 1
- [Bug]: No modelVersions.createdAt reponse field HOT 1
- [Bug]: API pagination is broken HOT 1
- [Bug]: Get Model information by API is miss creator fields HOT 1
- [Bug]: Slow Download Speed into Failed Download
- [Bug]: DORAs should be treated the same as LORAs for keeping the filename
- [Bug]: Original image is can't return correct content-type
- [Bug]: DB error when uploading image in post HOT 1
- [Bug]: image meta disparity between API and actual HOT 1
- [Bug]: API "GET /api/v1/images" returned HTTPCode 500 when fetch images HOT 5
- [Bug]: "Hidden" Filter not working as Intended HOT 1
- [Bug]: Missing response metadata HOT 1
- [Bug]: Image Api nsfw Query Parameters error HOT 2
- [Bug]: API Response Cursors Looping Back on Themselves HOT 2
- [Bug]: search box often loses characters if you continue to type while it's loading suggestions/results
- [Bug]: README instructions for running `npm run dev` are incorrect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from civitai.