elebumm / RedditVideoMakerBot

Create Reddit Videos with just✨ one command ✨
GNU General Public License v3.0
6.51k stars 1.83k forks source link

Error: HTTPSConnectionPool #2015

Closed aiyaanxo closed 4 months ago

aiyaanxo commented 5 months ago

Describe the bug

When I run the main.py, I come across this issue and then it displays the Error: HTTPSConnectionPool

Traceback (most recent call last): File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 174, in _new_conn conn = connection.create_connection( File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\connection.py", line 95, in create_connection raise err File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\connection.py", line 85, in create_connection sock.connect(sa) TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 715, in urlopen httplib_response = self._make_request( File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 1058, in _validate_conn conn.connect() File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 363, in connect self.sock = conn = self._new_conn() File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 179, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x000002E4770FEFB0>, 'Connection to api16-normal-c-useast1a.tiktokv.com timed out. (connect timeout=None)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 486, in send resp = conn.urlopen( File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 799, in urlopen retries = retries.increment( File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api16-normal-c-useast1a.tiktokv.com', port=443): Max retries exceeded with url: /media/api/text/speech/invoke/?req_text=Florida+state+is+attempting+to+make+child+rape+punishable+by+death.+Do+you+think+child+rape+warrants+a+death+penalty%3F+Why+or+why+not%3F&speaker_map_type=0&aid=1233&text_speaker=en_female_emotional (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002E4770FEFB0>, 'Connection to api16-normal-c-useast1a.tiktokv.com timed out. (connect timeout=None)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Windows\OneDrive - SRICHAITANYA PUNE\Desktop\RedditVideoMakerBot-master\RedditVideoMakerBot-master\main.py", line 131, in raise err File "C:\Users\Windows\OneDrive - SRICHAITANYA PUNE\Desktop\RedditVideoMakerBot-master\RedditVideoMakerBot-master\main.py", line 113, in run_many(config["settings"]["times_to_run"]) File "C:\Users\Windows\OneDrive - SRICHAITANYA PUNE\Desktop\RedditVideoMakerBot-master\RedditVideoMakerBot-master\main.py", line 68, in run_many main() File "C:\Users\Windows\OneDrive - SRICHAITANYA PUNE\Desktop\RedditVideoMakerBot-master\RedditVideoMakerBot-master\main.py", line 50, in main length, number_of_comments = save_text_to_mp3(reddit_object) File "C:\Users\Windows\OneDrive - SRICHAITANYA PUNE\Desktop\RedditVideoMakerBot-master\RedditVideoMakerBot-master\video_creation\voices.py", line 49, in save_text_to_mp3 return text_to_mp3.run() File "C:\Users\Windows\OneDrive - SRICHAITANYA PUNE\Desktop\RedditVideoMakerBot-master\RedditVideoMakerBot-master\TTS\engine_wrapper.py", line 76, in run self.call_tts("title", process_text(self.reddit_object["thread_title"])) File "C:\Users\Windows\OneDrive - SRICHAITANYA PUNE\Desktop\RedditVideoMakerBot-master\RedditVideoMakerBot-master\TTS\engine_wrapper.py", line 149, in call_tts self.tts_module.run( File "C:\Users\Windows\OneDrive - SRICHAITANYA PUNE\Desktop\RedditVideoMakerBot-master\RedditVideoMakerBot-master\TTS\TikTok.py", line 104, in run data = self.get_voices(voice=voice, text=text) File "C:\Users\Windows\OneDrive - SRICHAITANYA PUNE\Desktop\RedditVideoMakerBot-master\RedditVideoMakerBot-master\TTS\TikTok.py", line 138, in get_voices response = self._session.post(self.URI_BASE, params=params) File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 637, in post return self.request("POST", url, data=data, json=json, kwargs) File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 589, in request resp = self.send(prep, send_kwargs) File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "C:\Users\Windows\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 507, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='api16-normal-c-useast1a.tiktokv.com', port=443): Max retries exceeded with url: /media/api/text/speech/invoke/?req_text=Florida+state+is+attempting+to+make+child+rape+punishable+by+death.+Do+you+think+child+rape+warrants+a+death+penalty%3F+Why+or+why+not%3F&speaker_map_type=0&aid=1233&text_speaker=en_female_emotional (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002E4770FEFB0>, 'Connection to api16-normal-c-useast1a.tiktokv.com timed out. (connect timeout=None)'))

Reproduction Steps

Followed the steps as mentioned in the repository

Expected behavior

There was no "Results" folder created instead showed me the error

Screenshots

image

System Information

Operating System : [Windows 11] Python version : Python 3.10 App version / Branch : [e.g. latest, V2.0, master, develop]

Checklist

Additional Context

No response

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

github-actions[bot] commented 4 months ago

Issue closed due to being stale. Please reopen if issue persists in latest version.