Rpc connect function doesn't work

If i use rpc.connect() function get this error

If i use rpc.connect_tracker() function get this error

How can i fix it?