#1288 httpx.ProxyError: 407 Proxy Authentication Required

2001:8003* Posted at: 8 hours ago 👁9

Operation failed, please try again later:('407 Proxy Authentication Required',):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: 407 Proxy Authentication Required

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

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 936, in run
File "videotrans\translator\_base.py", line 83, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 103, in _item_task
File "google\genai\models.py", line 5783, in generate_content_stream
File "google\genai\models.py", line 4666, in _generate_content_stream
File "google\genai\_api_client.py", line 774, in request_streamed
File "google\genai\_api_client.py", line 671, in _request
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: 407 Proxy Authentication Required


=
system:Windows-10-10.0.26100-SP0
version:v3.83
frozen:True
language:en
root_dir:D:/pyvideotrans383

1 Replies

The error "407 Proxy Authentication Required" indicates that the software is attempting to use a proxy server for internet access (likely to connect to the Gemini translation service), but the proxy requires authentication which hasn't been provided.

To resolve this, follow these steps:

  1. Check Your Network: If you are on a corporate or institutional network that uses a proxy, you will need the proxy's address, port, username, and password.
  2. Configure Proxy in pyVideoTrans:

    • Go to the main menu: Translate Settings / TTS Settings / Speech Recognition Settings.
    • In the settings window, find the Network Proxy section.
    • Enter the required proxy details (address, port, username, password).
  3. Alternative Solution - Disable Proxy:

    • If you are not intentionally using a proxy, the system might be configured with one. In the same Network Proxy settings, try selecting "No Proxy" or clearing any existing proxy settings.
  4. Test the Connection: After making changes, use the "Test Network" or "Test" button (if available in the settings) to verify the connection to the translation service.

If the issue persists after these steps, please provide the complete log file from the D:/pyvideotrans383/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