.. _request_timeouts_in_operator: Operator fails, because a request times out ******************************************* If your custom operator makes a request to another service or an external IP it may fail with an error similar to the one below. :code:`ConnectTimeoutError((, 'Connection to opensearch-service.services.svc timed out. (connect timeout=2)'))` This issue may occur if a :ref:`Network Policy ` restricts the pod from making requests to the target service. To resolve this, you may need to add the appropriate `network-access-` labels to the operator. A list of possible types can be found :ref:`here `. You can set this label either in the operator definition or when using the operator in a DAG: .. code-block:: python task_with_access_to_opensearch = MyCustomOperator( dag=dag, labels={"network-access-opensearch": "true"}, )