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

use openai key but didn't get through with an Keyerror #4

Open
suredream opened this issue Aug 14, 2024 · 0 comments
Open

use openai key but didn't get through with an Keyerror #4

suredream opened this issue Aug 14, 2024 · 0 comments

Comments

@suredream
Copy link

Web UI show up. Fill the form and click either 点击开始运行 or 下一步

Traceback (most recent call last):
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/gradio/queueing.py", line 536, in process_events
    response = await route_utils.call_process_api(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/gradio/route_utils.py", line 288, in call_process_api
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/gradio/blocks.py", line 1931, in process_api
    result = await self.call_function(
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/gradio/blocks.py", line 1516, in call_function
    prediction = await anyio.to_thread.run_sync(  # type: ignore
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 859, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/gradio/utils.py", line 826, in wrapper
    response = f(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/gradio_server.py", line 116, in step
    cookie = request.headers['cookie']
             ~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/starlette/datastructures.py", line 565, in __getitem__
    raise KeyError(key)
KeyError: 'cookie'
Traceback (most recent call last):
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/gradio/queueing.py", line 536, in process_events
    response = await route_utils.call_process_api(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/gradio/route_utils.py", line 288, in call_process_api
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/gradio/blocks.py", line 1931, in process_api
    result = await self.call_function(
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/gradio/blocks.py", line 1516, in call_function
    prediction = await anyio.to_thread.run_sync(  # type: ignore
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 859, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/gradio/utils.py", line 826, in wrapper
    response = f(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/gradio_server.py", line 76, in init
    cookie = request.headers['cookie']
             ~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/Users/jxiong/Workspaces/Recurrent-LLM/.venv/lib/python3.12/site-packages/starlette/datastructures.py", line 565, in __getitem__
    raise KeyError(key)
KeyError: 'cookie'

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

1 participant