Bad requests
I have just the normal 3.6.0 sdxl docker running on my serverless but i just cannot get it to request correctly with a workflow. According to github which is literally the only place with any documentation it says a workflow can be passed but nothing I've tried works its just endless 400 bad request...
for some reason it will accept this but when I pass a workflow like this it just errors from the request.
38 Replies
I'm sure its something I'm doing wrong but there's zero info on how to do it properly from what I've found
this example request according to the github works
soo.. you can get the "workflow" request from comfyui and you put it inside correctly without invalid json right
may i know whats the error you are experiencing from that workflow input?, is it from the worker logs? or where?
Yeah I tried importing a workflow but it just gives the 400 bad request error on runpod so it must not be formated correctly or something
It's the logs from runpod I think the worker one
so when you sendthe request the response is 400 bad request?
can you copy it here?
oh i see
it says json is valid tho
how did you send your request too? (that one that failed)
Ive been using a discord bot to send the requests like I said that first one works fine but workflows just error out
whats the code like?
you mean the example from github (curl one) works but that json workflow that is prettied above isnt working right?
whats the code you used to send the request, whats the error like
oh btw bearer toke
okay.
yeah noticed
huh is that a comfyui worker or what?
thats the worker log
doesn't looks like a normal one i found from the github
i sent the workflow i posted earlier
oh... you're actually not running comfyui
that is why...
that workflow you formatted is for comfyui only
not for other workers
Am I not? I thought I was I just picked the quick deploy thing
which one?
Is there a different workflow for sdxl?
thats the validation for sdxl worker
which one from the runpod website, can you screenshot and showme? that you've deployed
Actually I think I deleted that one the one I'm on now is the sdxl one I thought it was also on comfy ui
i see, i think it might uses hf pipelines, as you see from the logs
its okay let me give you the link to comfyui
GitHub
GitHub - blib-la/runpod-worker-comfy: ComfyUI as a serverless API o...
ComfyUI as a serverless API on RunPod. Contribute to blib-la/runpod-worker-comfy development by creating an account on GitHub.
I'll look into the sdxl requests, didn't see anything online so I was confused
I might have to make a docker with that and just add the sdxl models I gues
GitHub
worker-sdxl/src at main · runpod-workers/worker-sdxl
RunPod worker for Stable Diffusion XL. Contribute to runpod-workers/worker-sdxl development by creating an account on GitHub.
sure, that works
just follow the guides, and if you're stuck somewhere feel free to open a new one in #⚡|serverless
so that the thread is cleaner
so that the thread is cleaner
Thanks for replying though I appreciate it
Your welcome!
I don't get this part though, the solution you gave will work but the docker even says comfyui for it so why would the requests be handled differently
https://hub.docker.com/r/timpietruskyblibla/runpod-worker-comfy/tags
"Run ComfyUI as a serverless API on RunPod."
Don't see much info on the hf pipeline but I can just switch dockers I guess
You're using this?
Yeah that's apparently the version according to runpod
I see, there might be an error with your request inside the worker then but when it wanted to return the error, it didn't succeed because runpod cannot parse the response from the worker
That's what I thought
that's a different endpoint but the workflow I tested on that also didn't work
And it apparently has comfyui
Huh I'm getting confused here, can you make another thread instead for that one and one for the comfyui
So it doesn't get mixed up
I can but it's throwing the same error idk just confused
They all throw 400 bad request like this?
Try modifying the docker image add a print statement before the return
To print anything that is returned from the worker
(inside the handler.py code)
I think it might have just given me a weird docker when I hit quick deploy I'll try with a fresh version of the one you sent first
Hmm I dont think so
But sure
I think I got it working actually, I had a node incorrect I believe from what the log said. But that sdxl docker confused me because I thought it was comfyui like the other ones that's my fault
Anyway I'll make a thread if I have problems have a good one
Oh a node incorrect meaning the comfyui should errors out?
Ic okok