WhatsDump icon indicating copy to clipboard operation
WhatsDump copied to clipboard

Emulator Error: cannot connect to http://localhost:9999

Open Unixcornio opened this issue 5 years ago • 5 comments

I have this error:

[INFO] Starting emulator... Windows Hypervisor Platform accelerator is operational emulator: Cold boot: requested by the user [INFO] Trying to register phone on emulator... (may take few minutes) [INFO] Installing WhatsApp... [INFO] Cleaning WhatsApp... [INFO] Moving extracted database into emulator... 9999 Traceback (most recent call last): File "whatsdump.py", line 244, in main() File "whatsdump.py", line 227, in main wa_emu.register_phone(msgstore_path, phone.country_code, phone.national_number, args.wa_verify, wa_code_callback) File "C:\WhatsDump-master\src\whatsapp.py", line 76, in register_phone vc = tools.get_viewclient() File "C:\WhatsDump-master\src\tools.py", line 18, in get_viewclient return ViewClient(device=vc_adb, serialno=self.adb_client.serial, useuiautomatorhelper=True) File "C:\Python2.7\lib\site-packages\com\dtmilano\android\viewclient.py", line 2577, in init self.uiAutomatorHelper = UiAutomatorHelper(device) File "C:\Python2.7\lib\site-packages\com\dtmilano\android\uiautomator\uiautomatorhelper.py", line 134, in init raise ex RuntimeError: Cannot connect to http://localhost:9999

Unixcornio avatar May 14 '19 21:05 Unixcornio

This happens randomly, it is a bug of third party library I'm using so I need to take a closer look. Temporary solution would be to re-run the script.

MarcoG3 avatar May 14 '19 21:05 MarcoG3

Can you specify which OS you're using?

MarcoG3 avatar May 14 '19 21:05 MarcoG3

Im sorry. Effectively. When testing again it has worked. I have Windows 10 (1809).

Unixcornio avatar May 14 '19 21:05 Unixcornio

I'm sometimes getting this same error. Running Ubuntu 18

ceinem avatar Nov 27 '19 20:11 ceinem

Same here, it worked after a few tries.

Python 2.7.18 on Ubuntu 18.04.4 LTS

Package                       Version            
----------------------------- -------------------
androidviewclient             15.8.0             
args                          0.1.0              
backports.functools-lru-cache 1.5                
certifi                       2018.11.29         
chardet                       3.0.4              
clint                         0.5.1              
cycler                        0.10.0             
idna                          2.8                
kiwisolver                    1.0.1              
libusb1                       1.7                
matplotlib                    2.2.3              
numpy                         1.16.0             
phonenumbers                  8.10.3             
pip                           19.3.1             
pure-python-adb               0.1.5.dev0         
pyparsing                     2.3.1              
python-dateutil               2.7.5              
pytz                          2018.9             
requests                      2.21.0             
setuptools                    44.0.0.post20200106
six                           1.12.0             
subprocess32                  3.5.3              
typing                        3.6.6              
urllib3                       1.24.2             
wheel                         0.33.6        

albestro avatar Aug 22 '20 11:08 albestro