harry0703 / MoneyPrinterTurbo

利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
MIT License
14.8k stars 2.27k forks source link

Clash增强模式下,依然有ProxyError #392

Closed yslin1995 closed 1 month ago

yslin1995 commented 1 month ago

问题描述:开启了Clash代理的Tun模式(或全局模式),网页访问pexels,本地curl google和pexels都有回复,但是一直报错ProxyError。

## downloading videos from pexels

2024-05-28 06:14:30.963 | INFO     | app.services.material:search_videos_pexels:51 - searching videos: https://api.pexels.com/videos/search?query=Universal+Studios&per_page=20&orientation=portrait, with proxies: {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'}

2024-05-28 06:14:30.965 | ERROR    | app.services.material:search_videos_pexels:81 - search videos failed: HTTPSConnectionPool(host='api.pexels.com', port=443): Max retries exceeded with url: /videos/search?query=Universal+Studios&per_page=20&orientation=portrait (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff358e71f0>: Failed to establish a new connection: [Errno 111] Connection refused')))

2024-05-28 06:14:30.965 | INFO     | app.services.material:download_videos:196 - found 0 videos for 'Universal Studios'

2024-05-28 06:14:30.966 | INFO     | app.services.material:search_videos_pexels:51 - searching videos: https://api.pexels.com/videos/search?query=Harry+Potter+World&per_page=20&orientation=portrait, with proxies: {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'}

2024-05-28 06:14:30.968 | ERROR    | app.services.material:search_videos_pexels:81 - search videos failed: HTTPSConnectionPool(host='api.pexels.com', port=443): Max retries exceeded with url: /videos/search?query=Harry+Potter+World&per_page=20&orientation=portrait (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff35904cd0>: Failed to establish a new connection: [Errno 111] Connection refused')))

2024-05-28 06:14:30.969 | INFO     | app.services.material:download_videos:196 - found 0 videos for 'Harry Potter World'

2024-05-28 06:14:30.969 | INFO     | app.services.material:search_videos_pexels:51 - searching videos: https://api.pexels.com/videos/search?query=Transformers+Battle&per_page=20&orientation=portrait, with proxies: {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'}

2024-05-28 06:14:30.971 | ERROR    | app.services.material:search_videos_pexels:81 - search videos failed: HTTPSConnectionPool(host='api.pexels.com', port=443): Max retries exceeded with url: /videos/search?query=Transformers+Battle&per_page=20&orientation=portrait (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff358e7be0>: Failed to establish a new connection: [Errno 111] Connection refused')))

2024-05-28 06:14:30.972 | INFO     | app.services.material:download_videos:196 - found 0 videos for 'Transformers Battle'

2024-05-28 06:14:30.972 | INFO     | app.services.material:search_videos_pexels:51 - searching videos: https://api.pexels.com/videos/search?query=Theme+Park+Rides&per_page=20&orientation=portrait, with proxies: {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'}

2024-05-28 06:14:30.974 | ERROR    | app.services.material:search_videos_pexels:81 - search videos failed: HTTPSConnectionPool(host='api.pexels.com', port=443): Max retries exceeded with url: /videos/search?query=Theme+Park+Rides&per_page=20&orientation=portrait (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff9afa9bd0>: Failed to establish a new connection: [Errno 111] Connection refused')))

2024-05-28 06:14:30.975 | INFO     | app.services.material:download_videos:196 - found 0 videos for 'Theme Park Rides'

2024-05-28 06:14:30.975 | INFO     | app.services.material:search_videos_pexels:51 - searching videos: https://api.pexels.com/videos/search?query=Live+Performances&per_page=20&orientation=portrait, with proxies: {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'}

2024-05-28 06:14:30.977 | ERROR    | app.services.material:search_videos_pexels:81 - search videos failed: HTTPSConnectionPool(host='api.pexels.com', port=443): Max retries exceeded with url: /videos/search?query=Live+Performances&per_page=20&orientation=portrait (Caused by ProxyError('Unable to connect to proxy', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff35969d80>: Failed to establish a new connection: [Errno 111] Connection refused')))

2024-05-28 06:14:30.977 | INFO     | app.services.material:download_videos:196 - found 0 videos for 'Live Performances'

2024-05-28 06:14:30.978 | INFO     | app.services.material:download_videos:204 - found total videos: 0, required duration: 28 seconds, found duration: 0.0 seconds

2024-05-28 06:14:30.979 | SUCCESS  | app.services.material:download_videos:232 - downloaded 0 videos

2024-05-28 06:14:30.980 | ERROR    | app.services.task:start:152 - failed to download videos, maybe the network is not available. if you are in China, please use a VPN.

2024-05-28 06:14:30.980 | ERROR    | __main__:<module>:640 - 视频生成失败
KevinZhang19870314 commented 1 month ago

命令行设置一下HTTP_PROXYHTTPS_PROXY变量为你的vpn暴露的端口。 @yslin1995

yslin1995 commented 1 month ago

命令行设置一下HTTP_PROXYHTTPS_PROXY变量为你的vpn暴露的端口。 @yslin1995

先输入 export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890,再起docker-compose,依然会上述报错。

harry0703 commented 1 month ago
curl --proxy http://127.0.0.1:7890/ https://www.facebook.com/

你试试curl设置为你的proxy可以正常访问么?

yslin1995 commented 1 month ago
curl --proxy http://127.0.0.1:7890/ https://www.facebook.com/

你试试curl设置为你的proxy可以正常访问么?

curl --proxy http://127.0.0.1:7890/ https://www.instagram.com/ 是可以访问的。