binary-husky / binary-husky/gpt_academic
[Bug]: 转化PDF编译失败
- Dominant language
- Python
- Stars
- 71.3k
- Forks
- 8.3k
- PR merge metrics
- No merged PRs in 30d
Description
### Installation Method | 安装方法与平台
Please choose | 请选择
### Version | 版本
Please choose | 请选择
### OS | 操作系统
Please choose | 请选择
### Describe the bug | 简述
转化PDF编译失败,按要求提交压缩包,提示压缩包超过25MB(压缩包实际大小为48MB)。请问该如何解决?
### Screen Shot | 有帮助的截图
### Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)
Traceback (most recent call last):
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
return await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 758, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 487, in handle
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/cors.py", line 91, in __call__
await self.simple_response(scope, receive, send, request_headers=headers)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/cors.py", line 146, in simple_response
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 758, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 299, in handle
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 79, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 74, in app
response = await func(request)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/gpt_academic/shared_utils/fastapi_server.py", line 240, in forward_post_request
return await forward_request(request, "POST")
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/gpt_academic/shared_utils/fastapi_server.py", line 220, in forward_request
await tts.save(temp_file)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 507, in save
async for message in self.stream():
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 483, in stream
async for message in self.__stream():
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 348, in __stream
async with aiohttp.ClientSession(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in __aenter__
self._resp: _RetType = await self._coro
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 1004, in _ws_connect
resp = await self.request(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 703, in _request
conn = await self._connector.connect(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 548, in connect
proto = await self._create_connection(req, traces, timeout)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 1056, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 1357, in _create_direct_connection
raise ClientConnectorDNSError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host speech.platform.bing.com:443 ssl: [nodename nor servname provided, or not known]
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 1351, in _create_direct_connection
hosts = await self._resolve_host(host, port, traces=traces)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 995, in _resolve_host
return await asyncio.shield(resolved_host_task)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 1026, in _resolve_host_with_throttle
addrs = await self._resolver.resolve(host, port, family=self._family)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/resolver.py", line 36, in resolve
infos = await self._loop.getaddrinfo(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/asyncio/base_events.py", line 863, in getaddrinfo
return await self.run_in_executor(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/socket.py", line 967, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
return await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 758, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 487, in handle
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/cors.py", line 91, in __call__
await self.simple_response(scope, receive, send, request_headers=headers)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/cors.py", line 146, in simple_response
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 758, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 299, in handle
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 79, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 74, in app
response = await func(request)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/gpt_academic/shared_utils/fastapi_server.py", line 240, in forward_post_request
return await forward_request(request, "POST")
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/gpt_academic/shared_utils/fastapi_server.py", line 220, in forward_request
await tts.save(temp_file)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 507, in save
async for message in self.stream():
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 483, in stream
async for message in self.__stream():
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 348, in __stream
async with aiohttp.ClientSession(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in __aenter__
self._resp: _RetType = await self._coro
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 1004, in _ws_connect
resp = await self.request(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 703, in _request
conn = await self._connector.connect(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 548, in connect
proto = await self._create_connection(req, traces, timeout)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 1056, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 1357, in _create_direct_connection
raise ClientConnectorDNSError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host speech.platform.bing.com:443 ssl: [nodename nor servname provided, or not known]
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
return await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 758, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 487, in handle
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/cors.py", line 91, in __call__
await self.simple_response(scope, receive, send, request_headers=headers)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/cors.py", line 146, in simple_response
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 758, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 299, in handle
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 79, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 74, in app
response = await func(request)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/gpt_academic/shared_utils/fastapi_server.py", line 240, in forward_post_request
return await forward_request(request, "POST")
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/gpt_academic/shared_utils/fastapi_server.py", line 220, in forward_request
await tts.save(temp_file)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 507, in save
async for message in self.stream():
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 483, in stream
async for message in self.__stream():
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 348, in __stream
async with aiohttp.ClientSession(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in __aenter__
self._resp: _RetType = await self._coro
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 1021, in _ws_connect
raise WSServerHandshakeError(
aiohttp.client_exceptions.WSServerHandshakeError: 503, message='Invalid response status', url='wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&Sec-MS-GEC=1BC64B9BBBF1B50C3A9682ACFCA4C62610F15FF06B8EF07B499E540B8FE8B8F2&Sec-MS-GEC-Version=1-130.0.2849.68&ConnectionId=d4491219118f45958e7edf9e2c69403f'
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 1351, in _create_direct_connection
hosts = await self._resolve_host(host, port, traces=traces)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 995, in _resolve_host
return await asyncio.shield(resolved_host_task)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 1026, in _resolve_host_with_throttle
addrs = await self._resolver.resolve(host, port, family=self._family)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/resolver.py", line 36, in resolve
infos = await self._loop.getaddrinfo(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/asyncio/base_events.py", line 863, in getaddrinfo
return await self.run_in_executor(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/socket.py", line 967, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
return await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 758, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 487, in handle
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/cors.py", line 91, in __call__
await self.simple_response(scope, receive, send, request_headers=headers)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/cors.py", line 146, in simple_response
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 758, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 299, in handle
await self.app(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 79, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/starlette/routing.py", line 74, in app
response = await func(request)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/gpt_academic/shared_utils/fastapi_server.py", line 240, in forward_post_request
return await forward_request(request, "POST")
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/gpt_academic/shared_utils/fastapi_server.py", line 220, in forward_request
await tts.save(temp_file)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 507, in save
async for message in self.stream():
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 483, in stream
async for message in self.__stream():
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/edge_tts/communicate.py", line 348, in __stream
async with aiohttp.ClientSession(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in __aenter__
self._resp: _RetType = await self._coro
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 1004, in _ws_connect
resp = await self.request(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/client.py", line 703, in _request
conn = await self._connector.connect(
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 548, in connect
proto = await self._create_connection(req, traces, timeout)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 1056, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/Users/kris/Downloads/OneKeyInstallerForWindowsAndMacOS/installer_files/env/lib/python3.10/site-packages/aiohttp/connector.py", line 1357, in _create_direct_connection
raise ClientConnectorDNSError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host speech.platform.bing.com:443 ssl: [nodename nor servname provided, or not known]
Contributor guide
No contributing guide indexed for this repository
Research direction
The traceback enters gpt_academic/shared_utils/fastapi_server.py at forward_post_request and forward_request, then reaches edge_tts through aiohttp. Reproduce the reported PDF request and inspect that path alongside the 25 MB archive rejection. Done means the actual failure is isolated and a verified regression test or documented resolution covers it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fastapi, python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100