#263 videotrans.configure._except.TranslateSrtError: Error code: 400 - [{'error': {'code': 400, 'message': 'User location is

IP: 34.253.x.x Posted at: 8 hours ago

翻译字幕阶段出错:Traceback (most recent call last):

File "videotrans\translator\_base.py", line 77, in run

File "videotrans\translator\_base.py", line 152, in _run_srt

File "tenacity\__init__.py", line 338, in wrapped_f

File "tenacity\__init__.py", line 477, in __call__

File "tenacity\__init__.py", line 378, in iter

File "tenacity\__init__.py", line 400, in

File "concurrent\futures\_base.py", line 439, in result

File "concurrent\futures\_base.py", line 391, in __get_result

File "tenacity\__init__.py", line 480, in __call__

File "videotrans\translator\_gemini.py", line 60, in _item_task

File "openai\_utils\_utils.py", line 287, in wrapper

File "openai\resources\chat\completions\completions.py", line 1150, in create

File "openai\_base_client.py", line 1259, in post

File "openai\_base_client.py", line 1047, in request

openai.BadRequestError: Error code: 400 - [{'error': {'code': 400, 'message': 'User location is not supported for the API use.', 'status': 'FAILED_PRECONDITION'}}]

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

Traceback (most recent call last):

File "videotrans\task\job.py", line 105, in run

File "videotrans\task\_translate_srt.py", line 48, in trans

File "videotrans\translator\__init__.py", line 809, in run

File "videotrans\translator\_base.py", line 80, in run

videotrans.configure._except.TranslateSrtError: Error code: 400 - [{'error': {'code': 400, 'message': 'User location is not supported for the API use.', 'status': 'FAILED_PRECONDITION'}}]:Gemini

=====

Windows-10-10.0.26100-SP0

version:v3.78

frozen:True

language:zh

1 Replies

没事了,换了个节点

Post Your Reply

Trending Questions