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

Get error NameError: name 'request_queue' is not defined. Did you mean: 'request_store'? while making a queue-info API call #105

Open
JaxDoge opened this issue Sep 21, 2024 · 1 comment

Comments

@JaxDoge
Copy link

JaxDoge commented Sep 21, 2024

The server returned 500 error when I tried to test the API call to my local server.

The uvicorn package return: NameError: name 'request_queue' is not defined. Did you mean: 'request_store'?

supervisor-1  | ==> /var/log/supervisor/comfyui-api-wrapper.log <==
supervisor-1  | INFO:     172.18.0.1:0 - "GET /queue-info HTTP/1.1" 500 Internal Server Error
supervisor-1  | ERROR:    Exception in ASGI application
supervisor-1  | Traceback (most recent call last):
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 419, in run_asgi
supervisor-1  |     result = await app(  # type: ignore[func-returns-value]
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
supervisor-1  |     return await self.app(scope, receive, send)
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/fastapi/applications.py", line 292, in __call__
supervisor-1  |     await super().__call__(scope, receive, send)
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__
supervisor-1  |     await self.middleware_stack(scope, receive, send)
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
supervisor-1  |     raise exc
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
supervisor-1  |     await self.app(scope, receive, _send)
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
supervisor-1  |     raise exc
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
supervisor-1  |     await self.app(scope, receive, sender)
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
supervisor-1  |     raise e
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
supervisor-1  |     await self.app(scope, receive, send)
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
supervisor-1  |     await route.handle(scope, receive, send)
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
supervisor-1  |     await self.app(scope, receive, send)
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
supervisor-1  |     response = await func(request)
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/fastapi/routing.py", line 273, in app
supervisor-1  |     raw_response = await run_endpoint_function(
supervisor-1  |   File "/opt/environments/python/api/lib/python3.10/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
supervisor-1  |     return await dependant.call(**values)
supervisor-1  |   File "/opt/ai-dock/api-wrapper/main.py", line 96, in queue_info
supervisor-1  |     return list(request_queue.queue)
supervisor-1  | NameError: name 'request_queue' is not defined. Did you mean: 'request_store'?
@robballantyne
Copy link
Member

Hi, I'll look at this soon.

The API wrapper isn't finished, as I haven't had much time to work on any of the AI-Dock repos for a few weeks. There's a good chance some fixes are required and the webhooks and telemetry haven't been implemented at all.

Should be good to go in a couple of weeks, after which I'll be making everything more modular as I focus more on docker compose support.

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

2 participants