SMrecorder icon indicating copy to clipboard operation
SMrecorder copied to clipboard

Connections Refused

Open AFSDGSDG opened this issue 6 years ago • 0 comments

Hello I have successfully been using your script earlier this yer with no problem. I had to stop though when i was upgrading my equipment. Now that i got my upgrade done i wanted to start this again. However using this same machine that this worked on previously now results in a connection refused error. Nothing has changed on my end that would affect this script so im guessing streeamate changed something. I am not familiar with python so it is not possible for me to debug.

I've noticed two different scenarios that i will describe below.

  1. Start program with models in wanted list online but none online - You will get a blank window with a blinking underscore character indefinitely or maybe just for 6 hours because i think it is sitting at line 78 of the SM.py

  2. Start program with models in wanted list online but at least one online - You will get a connection refusal error printed (see below) and it hangs somewhere.

If typed in URL from the error message into my browser and i get a valid response back. I have also tried different IP addresses in case Streamate was blocking me but there was no difference. Does anyone know whats going on or how to fix? Thank you

Error:

`Exception in thread Thread-1: Traceback (most recent call last): File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\urllib3\connection.py", line 141, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\urllib3\util\connection.py", line 83, in create_connection raise err File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection sock.connect(sa) ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen chunked=chunked) File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\urllib3\connectionpool.py", line 346, in _make_request self._validate_conn(conn) File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\urllib3\connectionpool.py", line 850, in _validate_conn conn.connect() File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\urllib3\connection.py", line 284, in connect conn = self._new_conn() File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\urllib3\connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x00000202D1473BE0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\requests\adapters.py", line 440, in send timeout=timeout File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\urllib3\util\retry.py", line 388, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='streamate.com', port=443): Max retries exceeded with url: /search.php?q=SOMEMODEL&sssjson=1 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00000202D1473BE0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\threading.py", line 914, in _bootstrap_inner self.run() File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "E:\SMrecorder-master\SMrecorder.py", line 75, in find_non_api_models if get.model_api_check(model): File "E:\SMrecorder-master\SM.py", line 56, in model_api_check headers={"User-Agent": UserAgent}).json()['Results'] File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\requests\api.py", line 72, in get return request('get', url, params=params, **kwargs) File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\requests\api.py", line 58, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\requests\sessions.py", line 508, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\requests\sessions.py", line 618, in send r = adapter.send(request, **kwargs) File "C:\Users\Computer\AppData\Local\Programs\Python\Python35\lib\site-packages\requests\adapters.py", line 508, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='streamate.com', port=443): Max retries exceeded with url: /search.php?q=SOMEMODEL&sssjson=1 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00000202D1473BE0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))`

AFSDGSDG avatar Aug 25 '18 18:08 AFSDGSDG