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

redis.exceptions.AuthenticationError: Authentication required. #34

Open
sscarsonfly opened this issue Dec 30, 2024 · 0 comments
Open

redis.exceptions.AuthenticationError: Authentication required. #34

sscarsonfly opened this issue Dec 30, 2024 · 0 comments

Comments

@sscarsonfly
Copy link

Traceback (most recent call last):
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/flask/app.py", line 2213, in call
return self.wsgi_app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/flask/app.py", line 2193, in wsgi_app
response = self.handle_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/flask_cors/extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/flask_cors/extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/application.py", line 70, in stream1
return Response(gen_title_v2.predict_title_v2(form, role, title, topic_num),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/generation/gen_ppt_outline.py", line 37, in predict_title_v2
return self.GptChain.predict(text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/chain/gpt_memory.py", line 49, in predict
return self.llm_chain.predict(human_input=question)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/langchain/chains/llm.py", line 252, in predict
return self(kwargs, callbacks=callbacks)[self.output_key]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/langchain/chains/base.py", line 220, in call
inputs = self.prep_inputs(inputs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/langchain/chains/base.py", line 372, in prep_inputs
external_context = self.memory.load_memory_variables(inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/langchain/memory/buffer.py", line 39, in load_memory_variables
return {self.memory_key: self.buffer}
^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/langchain/memory/buffer.py", line 24, in buffer
self.chat_memory.messages,
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/langchain/memory/chat_message_histories/redis.py", line 48, in messages
_items = self.redis_client.lrange(self.key, 0, -1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/commands/core.py", line 2741, in lrange
return self.execute_command("LRANGE", name, start, end)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/client.py", line 1269, in execute_command
return conn.retry.call_with_retry(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/retry.py", line 49, in call_with_retry
fail(error)
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/client.py", line 1273, in
lambda error: self._disconnect_raise(conn, error),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/client.py", line 1259, in _disconnect_raise
raise error
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/retry.py", line 46, in call_with_retry
return do()
^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/client.py", line 1270, in
lambda: self._send_command_parse_response(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/client.py", line 1246, in _send_command_parse_response
return self.parse_response(conn, command_name, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/client.py", line 1286, in parse_response
response = connection.read_response()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/connection.py", line 882, in read_response
response = self._parser.read_response(disable_decoding=disable_decoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/connection.py", line 349, in read_response
result = self._read_response(disable_decoding=disable_decoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carson/Auto-PPT/venv/lib/python3.12/site-packages/redis/connection.py", line 372, in _read_response
raise error
redis.exceptions.AuthenticationError: Authentication required.

redis 没设置密码
config.ini
; redis URL | redis URL
REDIS_URL = redis://127.0.0.1:6379/0

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