MrPowerScripts / reddit-karma-farming-bot

"Is karma really that important to you? Damn bro, you need a life" - YouTube Comment
https://mrpowerscripts.com
MIT License
297 stars 120 forks source link

Error With redgifs or any video platform #215

Open juanpnvd opened 1 year ago

juanpnvd commented 1 year ago

I'm having this error only with reposting with a redgifs link in the selftext, is any possibility to fix this or circumvent it? Thank you.

`5:46:09 The bot is now running. It has a chance to perform an action every second. Be patient 15:49:00 5005501184097 < 0.005 = True
running action: reddit_post_chance 15:49:00 running repost 15:49:00 finding a post to re-post 15:49:00 searching post in sub: TogaHentai 15:49:00 pushshift-url: https://api.pushshift.io/reddit/search/submission/?subreddit=TogaHentai&before=1629474540&after=1629388140&score>=1000&limit=1&author!=[deleted]&selftext:not=[deleted] Traceback (most recent call last): File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request self._validate_conn(conn) File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn conn.connect() File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/urllib3/connection.py", line 358, in connect self.sock = conn = self._new_conn() File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f27b00891f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='girl18xx.work', port=443): Max retries exceeded with url: /shes-a-bit-tied-up-but-shes-having-fun/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f27b00891f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "src/init.py", line 12, in bot.run() File "/home/runner/secretsauce/src/bot.py", line 11, in run reddit.run() File "/home/runner/secretsauce/src/bots/reddit/bot.py", line 65, in run self.tick() File "/home/runner/secretsauce/src/bots/reddit/bot.py", line 60, in tick action.call() File "/home/runner/secretsauce/src/bots/reddit/actions/post_actions.py", line 99, in repost api_call=requests.get(post.url).status_code File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, kwargs) File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, send_kwargs) File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, kwargs) File "/home/runner/secretsauce/venv/lib/python3.8/site-packages/requests/adapters.py", line 565, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='girl18xx.work', port=443): Max retries exceeded with url: /shes-a-bit-tied-up-but-shes-having-fun/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f27b00891f0>: Failed to establish a new connection: [Errno 111] Connection refused'))`