Traceback (most recent call last):
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\google\api_core\grpc_helpers.py", line 76, in error_remapped_callable
    return callable_(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\grpc\_channel.py", line 1181, in __call__
    return _end_unary_response_blocking(state, call, False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\grpc\_channel.py", line 1006, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:142.250.204.42:443: socket is null"
	debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2024-11-27T09:19:08.3380259+00:00", grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv4:142.250.204.42:443: socket is null"}"
>

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

Traceback (most recent call last):
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\google\api_core\retry\retry_unary.py", line 144, in retry_target
    result = target()
             ^^^^^^^^
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\google\api_core\timeout.py", line 120, in func_with_timeout
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\google\api_core\grpc_helpers.py", line 78, in error_remapped_callable
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.ServiceUnavailable: 503 failed to connect to all addresses; last error: UNKNOWN: ipv4:142.250.204.42:443: socket is null

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

Traceback (most recent call last):
  File "D:\code\Video_violation_monitor\apis\gemimi.py", line 16, in <module>
    for m in genai.list_models():
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\google\generativeai\models.py", line 204, in list_models
    for model in client.list_models(page_size=page_size, **request_options):
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\google\ai\generativelanguage_v1beta\services\model_service\client.py", line 916, in list_models
    response = rpc(
               ^^^^
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\google\api_core\gapic_v1\method.py", line 131, in __call__
    return wrapped_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\google\api_core\retry\retry_unary.py", line 293, in retry_wrapped_func
    return retry_target(
           ^^^^^^^^^^^^^
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\google\api_core\retry\retry_unary.py", line 153, in retry_target
    _retry_error_helper(
  File "D:\code\Video_violation_monitor\.venv\Lib\site-packages\google\api_core\retry\retry_base.py", line 221, in _retry_error_helper
    raise final_exc from source_exc
google.api_core.exceptions.RetryError: Timeout of 60.0s exceeded, last exception: 503 failed to connect to all addresses; last error: UNKNOWN: ipv4:142.250.204.42:443: socket is null
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1732699150.412205   54528 init.cc:229] grpc_wait_for_shutdown_with_timeout() timed out.