reFlutter icon indicating copy to clipboard operation
reFlutter copied to clipboard

ConnectionRefusedError: [Errno 111] Connection refused

Open jarno520 opened this issue 11 months ago • 1 comments

0.8.2 version when use: ─# reflutter /root/AndroidStudioProjects/split_config.arm64_v8a.apk

Choose an option:

  1. Traffic monitoring and interception
  2. Display absolute code offset for functions

[1/2]? 1 Traceback (most recent call last): File "/root/.pyenv/versions/3.8.0/lib/python3.8/urllib/request.py", line 1317, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/root/.pyenv/versions/3.8.0/lib/python3.8/http/client.py", line 1230, in request self._send_request(method, url, body, headers, encode_chunked) File "/root/.pyenv/versions/3.8.0/lib/python3.8/http/client.py", line 1276, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/root/.pyenv/versions/3.8.0/lib/python3.8/http/client.py", line 1225, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/root/.pyenv/versions/3.8.0/lib/python3.8/http/client.py", line 1004, in _send_output self.send(msg) File "/root/.pyenv/versions/3.8.0/lib/python3.8/http/client.py", line 944, in send self.connect() File "/root/.pyenv/versions/3.8.0/lib/python3.8/http/client.py", line 1392, in connect super().connect() File "/root/.pyenv/versions/3.8.0/lib/python3.8/http/client.py", line 915, in connect self.sock = self._create_connection( File "/root/.pyenv/versions/3.8.0/lib/python3.8/socket.py", line 807, in create_connection raise err File "/root/.pyenv/versions/3.8.0/lib/python3.8/socket.py", line 796, 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 "/root/.pyenv/versions/3.8.0/bin/reflutter", line 10, in sys.exit(main()) File "/root/.pyenv/versions/3.8.0/lib/python3.8/site-packages/src/init.py", line 447, in main extractZip(sys.argv[1]) File "/root/.pyenv/versions/3.8.0/lib/python3.8/site-packages/src/init.py", line 435, in extractZip replaceLibFlutter() File "/root/.pyenv/versions/3.8.0/lib/python3.8/site-packages/src/init.py", line 188, in replaceLibFlutter checkHash() File "/root/.pyenv/versions/3.8.0/lib/python3.8/site-packages/src/init.py", line 395, in checkHash resp = urlopen('https://raw.githubusercontent.com/Impact-I/reFlutter/main/enginehash.csv').read().decode('utf-8') File "/root/.pyenv/versions/3.8.0/lib/python3.8/urllib/request.py", line 222, in urlopen return opener.open(url, data, timeout) File "/root/.pyenv/versions/3.8.0/lib/python3.8/urllib/request.py", line 525, in open response = self._open(req, data) File "/root/.pyenv/versions/3.8.0/lib/python3.8/urllib/request.py", line 542, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "/root/.pyenv/versions/3.8.0/lib/python3.8/urllib/request.py", line 502, in _call_chain result = func(*args) File "/root/.pyenv/versions/3.8.0/lib/python3.8/urllib/request.py", line 1360, in https_open return self.do_open(http.client.HTTPSConnection, req, File "/root/.pyenv/versions/3.8.0/lib/python3.8/urllib/request.py", line 1320, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [Errno 111] Connection refused>

jarno520 avatar Jan 09 '25 09:01 jarno520

@jarno520 , you require internet access when performing the reflutter. And please note that you can do that on a split apk. You need to use apkeditor to merge the split apks.

jayluxferro avatar Jan 09 '25 09:01 jayluxferro