hereβs the full stack trace:
2024-07-06T22:09:43.696420+0200 [ERROR] [_receive_message] Error in message handler: Error code: 404 - {'error': {'message': 'Files ["file-cMmIH6kBJcxbEPp59ZLnn0KM"] were not found', 'type': 'invalid_request_error', 'param': None, 'code': None}}
Traceback (most recent call last):
File "D:\dev\eve\run.py", line 6, in <module>
main()
β <Command main>
File "D:\dev\eve\eveenv\Lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
β β β β {}
β β β ()
β β <function BaseCommand.main at 0x00000293794B5940>
β <Command main>
File "D:\dev\eve\eveenv\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
β β β <click.core.Context object at 0x0000029377600810>
β β <function Command.invoke at 0x00000293794B6520>
β <Command main>
File "D:\dev\eve\eveenv\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
β β β β β β {'server': True, 'adduser': None, 'deleteuser': None, 'listusers': False, 'interactive': False, 'ingest': None, 'textingest':...
β β β β β <click.core.Context object at 0x0000029377600810>
β β β β <function main at 0x00000293399F1A80>
β β β <Command main>
β β <function Context.invoke at 0x00000293794B4EA0>
β <click.core.Context object at 0x0000029377600810>
File "D:\dev\eve\eveenv\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
β β {'server': True, 'adduser': None, 'deleteuser': None, 'listusers': False, 'interactive': False, 'ingest': None, 'textingest':...
β ()
File "D:\dev\eve\eveenv\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
β β β β {'server': True, 'adduser': None, 'deleteuser': None, 'listusers': False, 'interactive': False, 'ingest': None, 'textingest':...
β β β ()
β β <function get_current_context at 0x000002937948C860>
β <function main at 0x00000293399F1760>
File "D:\dev\eve\eve\eve.py", line 245, in main
server.run()
β β <function Server.run at 0x000002933B3889A0>
β <eve.server.server.Server object at 0x0000029338A97210>
File "D:\dev\eve\eve\server\server.py", line 326, in run
self.server.serve_forever()
β β β <function BaseWSGIServer.serve_forever at 0x00000293391A2FC0>
β β <werkzeug.serving.BaseWSGIServer object at 0x00000293397ABC10>
β <eve.server.server.Server object at 0x0000029338A97210>
File "D:\dev\eve\eveenv\Lib\site-packages\werkzeug\serving.py", line 810, in serve_forever
super().serve_forever(poll_interval=poll_interval)
β 0.5
File "C:\Users\mbo\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 238, in serve_forever
self._handle_request_noblock()
β β <function BaseServer._handle_request_noblock at 0x000002937A25E8E0>
β <werkzeug.serving.BaseWSGIServer object at 0x00000293397ABC10>
File "C:\Users\mbo\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
β β β β ('127.0.0.1', 14632)
β β β <socket.socket fd=3300, family=2, type=1, proto=0, laddr=('127.0.0.1', 7228), raddr=('127.0.0.1', 14632)>
β β <function BaseServer.process_request at 0x000002937A25EAC0>
β <werkzeug.serving.BaseWSGIServer object at 0x00000293397ABC10>
File "C:\Users\mbo\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
β β β β ('127.0.0.1', 14632)
β β β <socket.socket fd=3300, family=2, type=1, proto=0, laddr=('127.0.0.1', 7228), raddr=('127.0.0.1', 14632)>
β β <function BaseServer.finish_request at 0x000002937A25EC00>
β <werkzeug.serving.BaseWSGIServer object at 0x00000293397ABC10>
File "C:\Users\mbo\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
β β β β β <werkzeug.serving.BaseWSGIServer object at 0x00000293397ABC10>
β β β β ('127.0.0.1', 14632)
β β β <socket.socket fd=3300, family=2, type=1, proto=0, laddr=('127.0.0.1', 7228), raddr=('127.0.0.1', 14632)>
β β <class 'werkzeug.serving.WSGIRequestHandler'>
β <werkzeug.serving.BaseWSGIServer object at 0x00000293397ABC10>
File "C:\Users\mbo\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 755, in __init__
self.handle()
β β <function WSGIRequestHandler.handle at 0x00000293391A2340>
β <werkzeug.serving.WSGIRequestHandler object at 0x0000029339873990>
File "D:\dev\eve\eveenv\Lib\site-packages\werkzeug\serving.py", line 391, in handle
super().handle()
File "C:\Users\mbo\AppData\Local\Programs\Python\Python311\Lib\http\server.py", line 432, in handle
self.handle_one_request()
β β <function BaseHTTPRequestHandler.handle_one_request at 0x0000029339239120>
β <werkzeug.serving.WSGIRequestHandler object at 0x0000029339873990>
File "C:\Users\mbo\AppData\Local\Programs\Python\Python311\Lib\http\server.py", line 420, in handle_one_request
method()
β <bound method WSGIRequestHandler.run_wsgi of <werkzeug.serving.WSGIRequestHandler object at 0x0000029339873990>>
File "D:\dev\eve\eveenv\Lib\site-packages\werkzeug\serving.py", line 363, in run_wsgi
execute(self.server.app)
β β β β <Flask 'Eve Server'>
β β β <werkzeug.serving.BaseWSGIServer object at 0x00000293397ABC10>
β β <werkzeug.serving.WSGIRequestHandler object at 0x0000029339873990>
β <function WSGIRequestHandler.run_wsgi.<locals>.execute at 0x00000293399E00E0>
File "D:\dev\eve\eveenv\Lib\site-packages\werkzeug\serving.py", line 324, in execute
application_iter = app(environ, start_response)
β β β <function WSGIRequestHandler.run_wsgi.<locals>.start_response at 0x00000293399E0040>
β β {'wsgi.version': (1, 0), 'wsgi.url_scheme': 'http', 'wsgi.input': <_io.BufferedReader name=3300>, 'wsgi.errors': <_io.TextIOW...
β <Flask 'Eve Server'>
File "D:\dev\eve\eveenv\Lib\site-packages\flask\app.py", line 1498, in __call__
return self.wsgi_app(environ, start_response)
β β β β <function WSGIRequestHandler.run_wsgi.<locals>.start_response at 0x00000293399E0040>
β β β {'wsgi.version': (1, 0), 'wsgi.url_scheme': 'http', 'wsgi.input': <_io.BufferedReader name=3300>, 'wsgi.errors': <_io.TextIOW...
β β <function Flask.wsgi_app at 0x000002933B30AAC0>
β <Flask 'Eve Server'>
File "D:\dev\eve\eveenv\Lib\site-packages\flask\app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
β β <function Flask.full_dispatch_request at 0x000002933B30A200>
β <Flask 'Eve Server'>
File "D:\dev\eve\eveenv\Lib\site-packages\flask\app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
β β <function Flask.dispatch_request at 0x000002933B30A160>
β <Flask 'Eve Server'>
File "D:\dev\eve\eveenv\Lib\site-packages\flask\app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
β β β β β β β {}
β β β β β β '_receive_message'
β β β β β <Rule '/api/message' (POST, OPTIONS) -> _receive_message>
β β β β {'static': <function Flask.__init__.<locals>.<lambda> at 0x00000293399F1300>, '_hello_world': <function Server._setup_routes....
β β β <Flask 'Eve Server'>
β β <function Flask.ensure_sync at 0x000002933B30A3E0>
β <Flask 'Eve Server'>
File "D:\dev\eve\eveenv\Lib\site-packages\flask_jwt_extended\view_decorators.py", line 170, in decorator
return current_app.ensure_sync(fn)(*args, **kwargs)
β β β β {}
β β β ()
β β <function Server._setup_routes.<locals>._receive_message at 0x00000293399F2A20>
β <Flask 'Eve Server'>
> File "D:\dev\eve\eve\server\server.py", line 122, in _receive_message
handler_response = self.message_handler({
β β <function server_message_handler at 0x00000293399F11C0>
β <eve.server.server.Server object at 0x0000029338A97210>
File "D:\dev\eve\eve\eve.py", line 389, in server_message_handler
reply = process_message(message, False)
β β {'message': 'what is in the image?', 'plaintext_attachment': None, 'file_ids': '["file-cMmIH6kBJcxbEPp59ZLnn0KM"]'}
β <function process_message at 0x00000293399F1120>
File "D:\dev\eve\eve\eve.py", line 353, in process_message
raw_result = fc_oai.run(userInput, systemInput)
β β β β ["SYSTEM: The user input's detected emotion is: curiosity. Keep this in mind when creating your response."]
β β β {'message': 'what is in the image?', 'plaintext_attachment': None, 'file_ids': '["file-cMmIH6kBJcxbEPp59ZLnn0KM"]'}
β β <function OpenAIFlowControl.run at 0x00000293398C6FC0>
β <eve.control.control_openai.OpenAIFlowControl object at 0x00000293397AB950>
File "D:\dev\eve\eve\control\control_openai.py", line 96, in run
self.client.beta.threads.messages.create(
β β β β β β <function Messages.create at 0x0000029335CED3A0>
β β β β β <openai.resources.beta.threads.messages.Messages object at 0x000002933B8B7B90>
β β β β <openai.resources.beta.threads.threads.Threads object at 0x00000293397E5D10>
β β β <openai.resources.beta.beta.Beta object at 0x00000293397E4290>
β β <openai.OpenAI object at 0x00000293397C8FD0>
β <eve.control.control_openai.OpenAIFlowControl object at 0x00000293397AB950>
File "D:\dev\eve\eveenv\Lib\site-packages\openai\resources\beta\threads\messages.py", line 87, in create
return self._post(
β β <bound method SyncAPIClient.post of <openai.OpenAI object at 0x00000293397C8FD0>>
β <openai.resources.beta.threads.messages.Messages object at 0x000002933B8B7B90>
File "D:\dev\eve\eveenv\Lib\site-packages\openai\_base_client.py", line 1240, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
β β β β β β β β None
β β β β β β β False
β β β β β β FinalRequestOptions(method='post', url='/threads/thread_uN6Pf3dUPoQ4KX9144zDZ8VU/messages', params={}, headers={'OpenAI-Beta'...
β β β β β <class 'openai.types.beta.threads.message.Message'>
β β β β <function SyncAPIClient.request at 0x0000029335ACB420>
β β β <openai.OpenAI object at 0x00000293397C8FD0>
β β ~ResponseT
β <function cast at 0x0000029377908720>
File "D:\dev\eve\eveenv\Lib\site-packages\openai\_base_client.py", line 921, in request
return self._request(
β β <function SyncAPIClient._request at 0x0000029335ACB4C0>
β <openai.OpenAI object at 0x00000293397C8FD0>
File "D:\dev\eve\eveenv\Lib\site-packages\openai\_base_client.py", line 1020, in _request
raise self._make_status_error_from_response(err.response) from None
β β <function BaseClient._make_status_error_from_response at 0x0000029335AC9BC0>
β <openai.OpenAI object at 0x00000293397C8FD0>
openai.NotFoundError: Error code: 404 - {'error': {'message': 'Files ["file-cMmIH6kBJcxbEPp59ZLnn0KM"] were not found', 'type': 'invalid_request_error', 'param': None, 'code': None}}