#1228 httpx.ProxyError: 502 Bad Gateway

2402:800* Posted at: 1 day ago 👁14

Operation failed, please try again later:('502 Bad Gateway',):
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\http_proxy.py", line 298, in handle_request
httpcore.ProxyError: 502 Bad Gateway

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 279, in run
File "videotrans\tts\_base.py", line 182, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_elevenlabs.py", line 68, in _run
File "elevenlabs\text_to_speech\client.py", line 163, in convert
File "contextlib.py", line 135, in enter
File "elevenlabs\text_to_speech\raw_client.py", line 148, in convert
File "contextlib.py", line 135, in enter
File "elevenlabs\core\http_client.py", line 310, in stream
File "contextlib.py", line 135, in enter
File "httpx\_client.py", line 867, in stream
File "httpx\_client.py", line 913, in send
File "httpx\_client.py", line 941, in _send_handling_auth
File "httpx\_client.py", line 978, in _send_handling_redirects
File "httpx\_client.py", line 1013, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ProxyError: 502 Bad Gateway


=
system:Windows-10-10.0.26200-SP0
version:v3.82
frozen:True
language:en
root_dir:D:/

1 Replies

This error indicates a proxy connection failure when using ElevenLabs TTS service. The "502 Bad Gateway" error typically occurs due to network connectivity issues or proxy configuration problems.

Here are the steps to resolve this:

  1. Check your network connection - Ensure you have stable internet access
  2. Verify ElevenLabs API key - Go to Menu → TTS Settings → ElevenLabs and confirm your API key is valid
  3. Try alternative TTS service - Switch to Edge-TTS (free) or another TTS provider temporarily:

    • Go to Menu → TTS Settings
    • Change "Voice Role" to "Edge-TTS" or another available option
  4. Check proxy settings - If you're using a proxy:

    • Go to Menu → Translation Settings
    • Review your proxy configuration
    • Try disabling proxy temporarily to test direct connection
  5. Retry with reduced load - In Tools/Options → Advanced Options, set "Simultaneous subtitle dubbing count" to 1

If the issue persists, please provide the complete log file from videotrans/logs/ directory for further analysis.

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions