HelloZeroNet / HelloZeroNet/ZeroNet

siteCmd command did not work

Đang mở
#1,979 15 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
JavaScript
Star
18.8k
Fork
2.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Step 1: Please describe your environment

* ZeroNet version: 4053
* Operating system: Ubuntu 18.04
* Web browser: Vivaldi
* Tor status: not available
* Opened port: yes

### Step 2: Describe the problem:
```
bitcoren@name:~/ZeroNet-py3$ python3 zeronet.py siteCmd 1KoLHoz1nSddbuf6HbfP19F7Ht7xNBSa6m fileGet content.json
- Starting ZeroNet...
- Libsecpk256k1 loaded
- Version: 0.7.0 r4053, Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0], Gevent: 1.4.0
FileServer IPv6 not supported: [Errno 101] Network is unreachable
- Unhandled exception: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "zeronet.py", line 23, in main
main.start()
File "/home/bitcoren/ZeroNet-py3/src/main.py", line 515, in start
actions.call(config.action, action_kwargs)
File "/home/bitcoren/ZeroNet-py3/src/main.py", line 111, in call
back = func(**kwargs)
File "/home/bitcoren/ZeroNet-py3/src/main.py", line 333, in siteCmd
res = json.loads(ws.recv())
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start at src/main.py:333 in siteCmd and trace the ws.recv() response for the supplied command. Reproduce the command in the reported environment; done means siteCmd handles the response without JSONDecodeError and returns the requested file result.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.