mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.03k stars 796 forks source link

save_media taking so longer time and failed #249

Open abughasan opened 6 years ago

abughasan commented 6 years ago

`Traceback (most recent call last): File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\socket.py", line 586, in readinto return self._sock.recv_into(b) ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "", line 27, in bacapesanbaru File "", line 9, in File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\webwhatsapi\objects\message.py", line 100, in save_media ioobj = self.driver.download_media(self) File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\webwhatsapi__init__.py", line 582, in download_media file_data = self.download_file(media_msg.client_url) File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\webwhatsapi__init.py", line 573, in download_file return b64decode(self.wapi_functions.downloadFile(url)) File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\webwhatsapi\wapi_js_wrapper.py", line 102, in call__ return self.driver.execute_async_script(command) File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 567, in execute_async_script 'args': converted_args})['value'] File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 309, in execute response = self.command_executor.execute(driver_command, params) File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 460, in execute return self._request(command_info[0], url, body=data) File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 484, in _request resp = self._conn.getresponse() File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 1331, in getresponse response.begin() File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 297, in begin version, status, reason = self._read_status() File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 258, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "C:\Users\DARULQURANMULIA\AppData\Local\Programs\Python\Python36-32\lib\socket.py", line 586, in readinto return self._sock.recv_into(b)`

any idea? or just me?

abughasan commented 6 years ago

any clue? from this function i'll make auto upload image to server. but save_media seems like not work. if anyone have an idea to do auto upload image to server, i'll be appreciate

kevinkit commented 6 years ago

Such a suggestion, do you maybe have a really bad internet connection?