Urllib3 warning messages cannot be blocked in Ray

How severe does this issue affect your experience of using Ray?

  • None: Just asking a question out of curiosity
  • Low: It annoys or frustrates me for a moment.

The urllib3.disable_warnings() python statement is used, but http warnings messages cannot be masked. This masking statement is effective when dont use Ray.

This is one of the warnings I’d like to block:

urllib3\connectionpool.py:1095: InsecureRequestWarning: Unverified HTTPS request is being made to host ‘******.com’. Adding certificate verification is strongly advised. See: Advanced Usage - urllib3 2.0.2 documentation
(pid=16900) warnings.warn(

If I change the source code of the urllib3 module I can make these warnings go away, but I’m looking for a better way.

WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: localhost. Connection pool size: 1 [repeated 2x across cluster]