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

500 Internal Server Error #90

Open
Xf0ur opened this issue Nov 1, 2023 · 0 comments
Open

500 Internal Server Error #90

Xf0ur opened this issue Nov 1, 2023 · 0 comments

Comments

@Xf0ur
Copy link

Xf0ur commented Nov 1, 2023

Hello,
I was able to run server.py and main.go without a problem,
However when someone send me a msg he gets the following response

<!doctype html>

<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.

Then i see the following errors in server.py

[2023-11-01 07:16:23,297] ERROR in app: Exception on /chat [GET]
Traceback (most recent call last):
File "D:\python-3.12.0\Lib\site-packages\flask\app.py", line 1455, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python-3.12.0\Lib\site-packages\flask\app.py", line 869, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python-3.12.0\Lib\site-packages\flask\app.py", line 867, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python-3.12.0\Lib\site-packages\flask\app.py", line 852, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\whatsapp-gpt-main\server.py", line 61, in chat
response = get_last_message()
^^^^^^^^^^^^^^^^^^
File "D:\whatsapp-gpt-main\server.py", line 53, in get_last_message
last_element = page_elements[-1]
~~~~~~~~~~~~~^^^^
IndexError: list index out of range

Any idea?

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