Spaces:
Sleeping
Sleeping
2025-04-08 16:21:51.983 | ERROR | 18ac3890a6ca4f82b4f3e2819816eec1 | Exception in ASGI application | |
Traceback (most recent call last): | |
File "C:\University-HCMUTE\InternFuta\ApiDialogflowChatbot\run.py", line 9, in <module> | |
server.run() | |
│ └ <function Server.run at 0x000002455EA57AC0> | |
└ <uvicorn.server.Server object at 0x000002455EAA2290> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\uvicorn\server.py", line 66, in run | |
return asyncio.run(self.serve(sockets=sockets)) | |
│ │ │ │ └ None | |
│ │ │ └ <function Server.serve at 0x000002455EA57B50> | |
│ │ └ <uvicorn.server.Server object at 0x000002455EAA2290> | |
│ └ <function run at 0x000002455C20C940> | |
└ <module 'asyncio' from 'C:\\Users\\tuf\\miniconda3\\envs\\chatbot-deploy\\lib\\asyncio\\__init__.py'> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\asyncio\runners.py", line 44, in run | |
return loop.run_until_complete(main) | |
│ │ └ <coroutine object Server.serve at 0x000002455EA2BD10> | |
│ └ <function BaseEventLoop.run_until_complete at 0x000002455E27C0D0> | |
└ <_WindowsSelectorEventLoop running=True closed=False debug=False> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\asyncio\base_events.py", line 633, in run_until_complete | |
self.run_forever() | |
│ └ <function BaseEventLoop.run_forever at 0x000002455E27C040> | |
└ <_WindowsSelectorEventLoop running=True closed=False debug=False> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\asyncio\base_events.py", line 600, in run_forever | |
self._run_once() | |
│ └ <function BaseEventLoop._run_once at 0x000002455E27DB40> | |
└ <_WindowsSelectorEventLoop running=True closed=False debug=False> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\asyncio\base_events.py", line 1896, in _run_once | |
handle._run() | |
│ └ <function Handle._run at 0x000002455E1E08B0> | |
└ <Handle <TaskStepMethWrapper object at 0x00000245601EEB60>()> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\asyncio\events.py", line 80, in _run | |
self._context.run(self._callback, *self._args) | |
│ │ │ │ │ └ <member '_args' of 'Handle' objects> | |
│ │ │ │ └ <Handle <TaskStepMethWrapper object at 0x00000245601EEB60>()> | |
│ │ │ └ <member '_callback' of 'Handle' objects> | |
│ │ └ <Handle <TaskStepMethWrapper object at 0x00000245601EEB60>()> | |
│ └ <member '_context' of 'Handle' objects> | |
└ <Handle <TaskStepMethWrapper object at 0x00000245601EEB60>()> | |
> File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi | |
result = await app( # type: ignore[func-returns-value] | |
└ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x000002455C1CB5E0> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__ | |
return await self.app(scope, receive, send) | |
│ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE680>> | |
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
│ └ <fastapi.applications.FastAPI object at 0x000002455EBA8730> | |
└ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x000002455C1CB5E0> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\fastapi\applications.py", line 1054, in __call__ | |
await super().__call__(scope, receive, send) | |
│ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE680>> | |
│ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
└ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\applications.py", line 112, in __call__ | |
await self.middleware_stack(scope, receive, send) | |
│ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE680>> | |
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
│ └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x000002456017D720> | |
└ <fastapi.applications.FastAPI object at 0x000002455EBA8730> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__ | |
raise exc | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__ | |
await self.app(scope, receive, _send) | |
│ │ │ │ └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x00000245601671C0> | |
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
│ └ <starlette.middleware.cors.CORSMiddleware object at 0x000002456017D630> | |
└ <starlette.middleware.errors.ServerErrorMiddleware object at 0x000002456017D720> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\middleware\cors.py", line 85, in __call__ | |
await self.app(scope, receive, send) | |
│ │ │ │ └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x00000245601671C0> | |
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
│ └ CorrelationIdMiddleware(app=<starlette.middleware.exceptions.ExceptionMiddleware object at 0x000002456017D510>, header_name='... | |
└ <starlette.middleware.cors.CORSMiddleware object at 0x000002456017D630> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\asgi_correlation_id\middleware.py", line 90, in __call__ | |
await self.app(scope, receive, handle_outgoing_request) | |
│ │ │ │ └ <function CorrelationIdMiddleware.__call__.<locals>.handle_outgoing_request at 0x0000024560167130> | |
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x000002456017D510> | |
└ CorrelationIdMiddleware(app=<starlette.middleware.exceptions.ExceptionMiddleware object at 0x000002456017D510>, header_name='... | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__ | |
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) | |
│ │ │ │ │ │ └ <function CorrelationIdMiddleware.__call__.<locals>.handle_outgoing_request at 0x0000024560167130> | |
│ │ │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
│ │ │ └ <starlette.requests.Request object at 0x00000245601EF970> | |
│ │ └ <fastapi.routing.APIRouter object at 0x000002455ED743A0> | |
│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x000002456017D510> | |
└ <function wrap_app_handling_exceptions at 0x000002455FAD5090> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app | |
raise exc | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app | |
await app(scope, receive, sender) | |
│ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000024560167250> | |
│ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
└ <fastapi.routing.APIRouter object at 0x000002455ED743A0> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\routing.py", line 714, in __call__ | |
await self.middleware_stack(scope, receive, send) | |
│ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000024560167250> | |
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
│ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x000002455ED743A0>> | |
└ <fastapi.routing.APIRouter object at 0x000002455ED743A0> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\routing.py", line 734, in app | |
await route.handle(scope, receive, send) | |
│ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000024560167250> | |
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
│ └ <function Route.handle at 0x000002455FAD6830> | |
└ APIRoute(path='/api/v1/chatbot', name='index', methods=['GET']) | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\routing.py", line 288, in handle | |
await self.app(scope, receive, send) | |
│ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000024560167250> | |
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
│ └ <function request_response.<locals>.app at 0x00000245601669E0> | |
└ APIRoute(path='/api/v1/chatbot', name='index', methods=['GET']) | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\routing.py", line 76, in app | |
await wrap_app_handling_exceptions(app, request)(scope, receive, send) | |
│ │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000024560167250> | |
│ │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
│ │ └ <starlette.requests.Request object at 0x00000245601EF580> | |
│ └ <function request_response.<locals>.app.<locals>.app at 0x00000245601672E0> | |
└ <function wrap_app_handling_exceptions at 0x000002455FAD5090> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app | |
raise exc | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app | |
await app(scope, receive, sender) | |
│ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000024560167370> | |
│ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x00000245601EE... | |
│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'cl... | |
└ <function request_response.<locals>.app.<locals>.app at 0x00000245601672E0> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\routing.py", line 73, in app | |
response = await f(request) | |
│ └ <starlette.requests.Request object at 0x00000245601EF580> | |
└ <function get_request_handler.<locals>.app at 0x0000024560166950> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\fastapi\routing.py", line 301, in app | |
raw_response = await run_endpoint_function( | |
└ <function run_endpoint_function at 0x000002455FAE43A0> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function | |
return await dependant.call(**values) | |
│ │ └ {'request': <starlette.requests.Request object at 0x00000245601EF580>} | |
│ └ <function index at 0x0000024560164AF0> | |
└ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[], dependencies=[], security_requ... | |
File "C:\University-HCMUTE\InternFuta\ApiDialogflowChatbot\app\dialogflow\api\v1\dialogflow.py", line 394, in index | |
return templates.TemplateResponse("index.html", {"request": request, "title": "Dawi Chatbot"}) | |
│ │ └ <starlette.requests.Request object at 0x00000245601EF580> | |
│ └ <function Jinja2Templates.TemplateResponse at 0x0000024560012B00> | |
└ <starlette.templating.Jinja2Templates object at 0x0000024560014A30> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\templating.py", line 208, in TemplateResponse | |
template = self.get_template(name) | |
│ │ └ 'index.html' | |
│ └ <function Jinja2Templates.get_template at 0x0000024560012A70> | |
└ <starlette.templating.Jinja2Templates object at 0x0000024560014A30> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\starlette\templating.py", line 131, in get_template | |
return self.env.get_template(name) | |
│ │ │ └ 'index.html' | |
│ │ └ <function Environment.get_template at 0x00000245600100D0> | |
│ └ <jinja2.environment.Environment object at 0x000002456013BF10> | |
└ <starlette.templating.Jinja2Templates object at 0x0000024560014A30> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\jinja2\environment.py", line 1016, in get_template | |
return self._load_template(name, globals) | |
│ │ │ └ None | |
│ │ └ 'index.html' | |
│ └ <function Environment._load_template at 0x0000024560010040> | |
└ <jinja2.environment.Environment object at 0x000002456013BF10> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\jinja2\environment.py", line 975, in _load_template | |
template = self.loader.load(self, name, self.make_globals(globals)) | |
│ │ │ │ │ │ │ └ None | |
│ │ │ │ │ │ └ <function Environment.make_globals at 0x0000024560010310> | |
│ │ │ │ │ └ <jinja2.environment.Environment object at 0x000002456013BF10> | |
│ │ │ │ └ 'index.html' | |
│ │ │ └ <jinja2.environment.Environment object at 0x000002456013BF10> | |
│ │ └ <function BaseLoader.load at 0x0000024560011B40> | |
│ └ <jinja2.loaders.FileSystemLoader object at 0x000002456013BF70> | |
└ <jinja2.environment.Environment object at 0x000002456013BF10> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\jinja2\loaders.py", line 126, in load | |
source, filename, uptodate = self.get_source(environment, name) | |
│ │ │ └ 'index.html' | |
│ │ └ <jinja2.environment.Environment object at 0x000002456013BF10> | |
│ └ <function FileSystemLoader.get_source at 0x0000024560011C60> | |
└ <jinja2.loaders.FileSystemLoader object at 0x000002456013BF70> | |
File "C:\Users\tuf\miniconda3\envs\chatbot-deploy\lib\site-packages\jinja2\loaders.py", line 209, in get_source | |
raise TemplateNotFound( | |
└ <class 'jinja2.exceptions.TemplateNotFound'> | |
jinja2.exceptions.TemplateNotFound: 'index.html' not found in search path: 'app/templates' | |