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

[Bug]: 转化PDF编译失败 #2104

Open
kris330 opened this issue Jan 2, 2025 · 0 comments
Open

[Bug]: 转化PDF编译失败 #2104

kris330 opened this issue Jan 2, 2025 · 0 comments

Comments

@kris330
Copy link

kris330 commented Jan 2, 2025

Installation Method | 安装方法与平台

Please choose | 请选择

Version | 版本

Please choose | 请选择

OS | 操作系统

Please choose | 请选择

Describe the bug | 简述

转化PDF编译失败,按要求提交压缩包,提示压缩包超过25MB(压缩包实际大小为48MB)。请问该如何解决?

Screen Shot | 有帮助的截图

image

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:<ssl.SSLContext object at 0x12188f2c0> [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:<ssl.SSLContext object at 0x1215f2840> [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:<ssl.SSLContext object at 0x120b5d9c0> [nodename nor servname provided, or not known]

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