Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API and Websocket #110

Open
ajianaz opened this issue Oct 11, 2024 · 6 comments
Open

API and Websocket #110

ajianaz opened this issue Oct 11, 2024 · 6 comments

Comments

@ajianaz
Copy link

ajianaz commented Oct 11, 2024

i want accessing websocket and api. what should i do ?

i was try using /ai-dock/api but still not working or maybe my configuration is false.
and about websocket any endpoint or like when using in local ? i mean using IP:PORT ?

Thankyou.

@Lucaslpena
Copy link

I am currently trying to get the ComfyUI websockets_api_example.py running, but I am getting a 302, so I am assuming it's an authentication issue but when I try my config's username and password nothing works... any advice would be great!

@ammahmoudi
Copy link

same. how can i connect with websocket to comfyui?

@evanshi80
Copy link

same issue here, any way to make the original API and websocket working? thanks

@ajianaz
Copy link
Author

ajianaz commented Dec 18, 2024

sorry for late reply.

i think i can connect to comfy ui using port comfy ui from ai-dock but need to remove auth route first.
@evanshi80 @ammahmoudi

@evanshi80
Copy link

Hey there, I figured a way to use the original api and web socket. By adding an environment variable WEB_TOKEN with any string value. Then you are able to send requests to any API and also the web socket with an authorization bearer token header.

@ajianaz
Copy link
Author

ajianaz commented Dec 18, 2024

That's right. Using WEB_TOKEN is more security safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants