Giter Site home page Giter Site logo

Comments (4)

7biz avatar 7biz commented on July 22, 2024

Now I also started getting an error, yesterday everything worked.

<title>500 Internal Server Error</title>

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

from freegpt-webui.

Am0rphous avatar Am0rphous commented on July 22, 2024

I experienced the same problem @rufatkiu and @7biz . Somehow it fixed itself after I pulled updates. Hopefully this will help you as well:

cd freegpt-webui
git pull
pip install -r requirements.txt
python run.py

from freegpt-webui.

final999 avatar final999 commented on July 22, 2024

已更新到最新,依然有这个错误。

from freegpt-webui.

final999 avatar final999 commented on July 22, 2024

2023-07-15 21:42:49 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 149, in create
2023-07-15 21:42:49 ) = cls.__prepare_create_request(
2023-07-15 21:42:49 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 106, in __prepare_create_request
2023-07-15 21:42:49 requestor = api_requestor.APIRequestor(
2023-07-15 21:42:49 File "/root/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 138, in init
2023-07-15 21:42:49 self.api_key = key or util.default_api_key()
2023-07-15 21:42:49 File "/root/.local/lib/python3.10/site-packages/openai/util.py", line 186, in default_api_key
2023-07-15 21:42:49 raise openai.error.AuthenticationError(
2023-07-15 21:42:49 openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.
2023-07-15 21:43:04 172.17.0.1 - - [15/Jul/2023 13:43:04] "POST /backend-api/v2/conversation HTTP/1.1" 500 -
2023-07-15 21:43:04 Error on request:
2023-07-15 21:43:04 Traceback (most recent call last):
2023-07-15 21:43:04 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 364, in run_wsgi
2023-07-15 21:43:04 execute(self.server.app)
2023-07-15 21:43:04 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 327, in execute
2023-07-15 21:43:04 for data in application_iter:
2023-07-15 21:43:04 File "/root/.local/lib/python3.10/site-packages/werkzeug/wsgi.py", line 289, in next
2023-07-15 21:43:04 return self._next()
2023-07-15 21:43:04 File "/root/.local/lib/python3.10/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
2023-07-15 21:43:04 for item in iterable:
2023-07-15 21:43:04 File "/app/server/backend.py", line 155, in generate_stream
2023-07-15 21:43:04 yield from response
2023-07-15 21:43:04 File "/app/g4f/Provider/Providers/Chimera.py", line 36, in _create_completion
2023-07-15 21:43:04 response = openai.ChatCompletion.create(
2023-07-15 21:43:04 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
2023-07-15 21:43:04 return super().create(*args, **kwargs)
2023-07-15 21:43:04 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 149, in create
2023-07-15 21:43:04 ) = cls.__prepare_create_request(
2023-07-15 21:43:04 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 106, in __prepare_create_request
2023-07-15 21:43:04 requestor = api_requestor.APIRequestor(
2023-07-15 21:43:04 File "/root/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 138, in init
2023-07-15 21:43:04 self.api_key = key or util.default_api_key()
2023-07-15 21:43:04 File "/root/.local/lib/python3.10/site-packages/openai/util.py", line 186, in default_api_key
2023-07-15 21:43:04 raise openai.error.AuthenticationError(
2023-07-15 21:43:04 openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.
2023-07-15 21:43:18 172.17.0.1 - - [15/Jul/2023 13:43:18] "POST /backend-api/v2/conversation HTTP/1.1" 500 -
2023-07-15 21:43:18 Error on request:
2023-07-15 21:43:18 Traceback (most recent call last):
2023-07-15 21:43:18 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 364, in run_wsgi
2023-07-15 21:43:18 execute(self.server.app)
2023-07-15 21:43:18 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 327, in execute
2023-07-15 21:43:18 for data in application_iter:
2023-07-15 21:43:18 File "/root/.local/lib/python3.10/site-packages/werkzeug/wsgi.py", line 289, in next
2023-07-15 21:43:18 return self._next()
2023-07-15 21:43:18 File "/root/.local/lib/python3.10/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
2023-07-15 21:43:18 for item in iterable:
2023-07-15 21:43:18 File "/app/server/backend.py", line 155, in generate_stream
2023-07-15 21:43:18 yield from response
2023-07-15 21:43:18 File "/app/g4f/Provider/Providers/Chimera.py", line 36, in _create_completion
2023-07-15 21:43:18 response = openai.ChatCompletion.create(
2023-07-15 21:43:18 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
2023-07-15 21:43:18 return super().create(*args, **kwargs)
2023-07-15 21:43:18 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 149, in create
2023-07-15 21:43:18 ) = cls.__prepare_create_request(
2023-07-15 21:43:18 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 106, in __prepare_create_request
2023-07-15 21:43:18 requestor = api_requestor.APIRequestor(
2023-07-15 21:43:18 File "/root/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 138, in init
2023-07-15 21:43:18 self.api_key = key or util.default_api_key()
2023-07-15 21:43:18 File "/root/.local/lib/python3.10/site-packages/openai/util.py", line 186, in default_api_key
2023-07-15 21:43:18 raise openai.error.AuthenticationError(
2023-07-15 21:43:18 openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.
2023-07-15 21:43:36 172.17.0.1 - - [15/Jul/2023 13:43:36] "POST /backend-api/v2/conversation HTTP/1.1" 500 -
2023-07-15 21:43:36 Error on request:
2023-07-15 21:43:36 Traceback (most recent call last):
2023-07-15 21:43:36 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 364, in run_wsgi
2023-07-15 21:43:36 execute(self.server.app)
2023-07-15 21:43:36 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 327, in execute
2023-07-15 21:43:36 for data in application_iter:
2023-07-15 21:43:36 File "/root/.local/lib/python3.10/site-packages/werkzeug/wsgi.py", line 289, in next
2023-07-15 21:43:36 return self._next()
2023-07-15 21:43:36 File "/root/.local/lib/python3.10/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
2023-07-15 21:43:36 for item in iterable:
2023-07-15 21:43:36 File "/app/server/backend.py", line 155, in generate_stream
2023-07-15 21:43:36 yield from response
2023-07-15 21:43:36 File "/app/g4f/Provider/Providers/Chimera.py", line 36, in _create_completion
2023-07-15 21:43:36 response = openai.ChatCompletion.create(
2023-07-15 21:43:36 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
2023-07-15 21:43:36 return super().create(*args, **kwargs)
2023-07-15 21:43:36 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 149, in create
2023-07-15 21:43:36 ) = cls.__prepare_create_request(
2023-07-15 21:43:36 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 106, in __prepare_create_request
2023-07-15 21:43:36 requestor = api_requestor.APIRequestor(
2023-07-15 21:43:36 File "/root/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 138, in init
2023-07-15 21:43:36 self.api_key = key or util.default_api_key()
2023-07-15 21:43:36 File "/root/.local/lib/python3.10/site-packages/openai/util.py", line 186, in default_api_key
2023-07-15 21:43:36 raise openai.error.AuthenticationError(
2023-07-15 21:43:36 openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.
2023-07-15 21:44:08 172.17.0.1 - - [15/Jul/2023 13:44:08] "POST /backend-api/v2/conversation HTTP/1.1" 400 -
2023-07-15 21:44:35 172.17.0.1 - - [15/Jul/2023 13:44:35] "POST /backend-api/v2/conversation HTTP/1.1" 400 -
2023-07-15 21:44:53 172.17.0.1 - - [15/Jul/2023 13:44:53] "POST /backend-api/v2/conversation HTTP/1.1" 500 -
2023-07-15 21:44:53 Error on request:
2023-07-15 21:44:53 Traceback (most recent call last):
2023-07-15 21:44:53 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 364, in run_wsgi
2023-07-15 21:44:53 execute(self.server.app)
2023-07-15 21:44:53 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 327, in execute
2023-07-15 21:44:53 for data in application_iter:
2023-07-15 21:44:53 File "/root/.local/lib/python3.10/site-packages/werkzeug/wsgi.py", line 289, in next
2023-07-15 21:44:53 return self._next()
2023-07-15 21:44:53 File "/root/.local/lib/python3.10/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
2023-07-15 21:44:53 for item in iterable:
2023-07-15 21:44:53 File "/app/server/backend.py", line 155, in generate_stream
2023-07-15 21:44:53 yield from response
2023-07-15 21:44:53 File "/app/g4f/Provider/Providers/Chimera.py", line 36, in _create_completion
2023-07-15 21:44:53 response = openai.ChatCompletion.create(
2023-07-15 21:44:53 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
2023-07-15 21:44:53 return super().create(*args, **kwargs)
2023-07-15 21:44:53 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 149, in create
2023-07-15 21:44:53 ) = cls.__prepare_create_request(
2023-07-15 21:44:53 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 106, in __prepare_create_request
2023-07-15 21:44:53 requestor = api_requestor.APIRequestor(
2023-07-15 21:44:53 File "/root/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 138, in init
2023-07-15 21:44:53 self.api_key = key or util.default_api_key()
2023-07-15 21:44:53 File "/root/.local/lib/python3.10/site-packages/openai/util.py", line 186, in default_api_key
2023-07-15 21:44:53 raise openai.error.AuthenticationError(
2023-07-15 21:44:53 openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.
2023-07-15 21:45:07 172.17.0.1 - - [15/Jul/2023 13:45:07] "POST /backend-api/v2/conversation HTTP/1.1" 500 -
2023-07-15 21:45:07 Error on request:
2023-07-15 21:45:07 Traceback (most recent call last):
2023-07-15 21:45:07 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 364, in run_wsgi
2023-07-15 21:45:07 execute(self.server.app)
2023-07-15 21:45:07 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 327, in execute
2023-07-15 21:45:07 for data in application_iter:
2023-07-15 21:45:07 File "/root/.local/lib/python3.10/site-packages/werkzeug/wsgi.py", line 289, in next
2023-07-15 21:45:07 return self._next()
2023-07-15 21:45:07 File "/root/.local/lib/python3.10/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
2023-07-15 21:45:07 for item in iterable:
2023-07-15 21:45:07 File "/app/server/backend.py", line 155, in generate_stream
2023-07-15 21:45:07 yield from response
2023-07-15 21:45:07 File "/app/g4f/Provider/Providers/Chimera.py", line 36, in _create_completion
2023-07-15 21:45:07 response = openai.ChatCompletion.create(
2023-07-15 21:45:07 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
2023-07-15 21:45:07 return super().create(*args, **kwargs)
2023-07-15 21:45:07 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 149, in create
2023-07-15 21:45:07 ) = cls.__prepare_create_request(
2023-07-15 21:45:07 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 106, in __prepare_create_request
2023-07-15 21:45:07 requestor = api_requestor.APIRequestor(
2023-07-15 21:45:07 File "/root/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 138, in init
2023-07-15 21:45:07 self.api_key = key or util.default_api_key()
2023-07-15 21:45:07 File "/root/.local/lib/python3.10/site-packages/openai/util.py", line 186, in default_api_key
2023-07-15 21:45:07 raise openai.error.AuthenticationError(
2023-07-15 21:45:07 openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.
2023-07-15 21:45:33 172.17.0.1 - - [15/Jul/2023 13:45:33] "POST /backend-api/v2/conversation HTTP/1.1" 500 -
2023-07-15 21:45:33 Error on request:
2023-07-15 21:45:33 Traceback (most recent call last):
2023-07-15 21:45:33 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 364, in run_wsgi
2023-07-15 21:45:33 execute(self.server.app)
2023-07-15 21:45:33 File "/root/.local/lib/python3.10/site-packages/werkzeug/serving.py", line 327, in execute
2023-07-15 21:45:33 for data in application_iter:
2023-07-15 21:45:33 File "/root/.local/lib/python3.10/site-packages/werkzeug/wsgi.py", line 289, in next
2023-07-15 21:45:33 return self._next()
2023-07-15 21:45:33 File "/root/.local/lib/python3.10/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
2023-07-15 21:45:33 for item in iterable:
2023-07-15 21:45:33 File "/app/server/backend.py", line 155, in generate_stream
2023-07-15 21:45:33 yield from response
2023-07-15 21:45:33 File "/app/g4f/Provider/Providers/Chimera.py", line 36, in _create_completion
2023-07-15 21:45:33 response = openai.ChatCompletion.create(
2023-07-15 21:45:33 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
2023-07-15 21:45:33 return super().create(*args, **kwargs)
2023-07-15 21:45:33 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 149, in create
2023-07-15 21:45:33 ) = cls.__prepare_create_request(
2023-07-15 21:45:33 File "/root/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 106, in __prepare_create_request
2023-07-15 21:45:33 requestor = api_requestor.APIRequestor(
2023-07-15 21:45:33 File "/root/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 138, in init
2023-07-15 21:45:33 self.api_key = key or util.default_api_key()
2023-07-15 21:45:33 File "/root/.local/lib/python3.10/site-packages/openai/util.py", line 186, in default_api_key
2023-07-15 21:45:33 raise openai.error.AuthenticationError(
2023-07-15 21:45:33 openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.
2023-07-15 21:47:12 172.17.0.1 - - [15/Jul/2023 13:47:12] "GET /assets/img/favicon-32x32.png HTTP/1.1" 304 -
2023-07-15 21:47:12 172.17.0.1 - - [15/Jul/2023 13:47:12] "GET /assets/img/favicon-32x32.png HTTP/1.1" 304 -

from freegpt-webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.