comfyui api 401 unauthorized
I installed comfyui to runpod, which works fine in the browser.
However, when I try to access the same URL through axios to use the comfyui api, I get 401 Unauthorized. what may be the problem?
17 Replies
Send your request example
how you are sending it.
simply:
const res = await axios.get(
${COMFY_SERVER}/
);
the url is correct
and opens in the browser
but axios returns 401 unauthorized
(post, /prompt, etc. all same)Is there like an update to comfyui
Some authentication perhaps
From local?
yes
I don't think so, btw the 401 comes from cloudflare I think
Hm what
What if you try from the pods immediately
this is the full response:
let me see about that
says cloudflare in there somewhere, that's why I thought so
strange thing is, when I access the same url from the browser on my computer, it works. not with axios, which is kinda strangfe
It's from comfyui
You set any login?
It uses cloudflare yes but I don't think that is the reason that it's Givin 401
How did you setup your comfyui with login?
hmm not that I know of but let me check the extensions
jvijp6qn748txu-8188.proxy.runpod.net
That is ur url
Extracted from your request
Try opening it in new incognito or private tab
You'll see
ohhhh yes there really is a login custom node.
disabling it worked 🙂 thanks!
another quick question then: is there a way to have an ACL kind of thing on my pod? like accept only requests from this ip?
or would I have to implement it myself in comfy's code etc?=
Your welcome
Custom node will do, if you have any
There's no built in option yet on runpod sadly
Or any proxy you can use works in pod is also viable
thanks a lot! I'll see what I can do 🙂
Yaa
turns out the login node supports api calls with token too, adding the token solved the issue
Nc
Sorry, how to disable "login custom node"?
go to custom_nodes folder of your comfyUI then delete that specific custom node
or disable from comfyui manager