HelloZeroNet / HelloZeroNet/ZeroNet

greenlet.py, worker.py - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 13: ordinal not in range(128)

Đang mở
#1,924 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
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: 3853
* Operating system: W10
* Web browser: FF
* Tor status: available

### Step 2: Describe the problem:

The merger site is not loading content from hubs, so i taken a look into debug.log and found some errors that MAY be related:

```
[2019-03-19 05:12:43,224] DEBUG WorkerManager:site..addresshere New task: galleries/something2: here/content.json, peer lock: None, priority: 1, optional_hash_id: None, tasks started: 16
[2019-03-19 05:12:43,272] DEBUG WorkerManager:site..addresshere Timeout, Skipping: {'optional_hash_id': None, 'site': , 'done': False, 'size': 0, 'inner_path': u'galleries/some: name/content.json', 'peers': None, 'time_started': 1552988370.636, 'time_action': None, 'priority': 1, 'failed': [peershere], 'workers_num': 669, 'time_added': 1552988307.413, 'evt': }
[2019-03-19 05:12:43,272] DEBUG WorkerManager:site..addresshere iphere:port: Force skipping
[2019-03-19 05:12:43,272] DEBUG WorkerManager:site..addresshere iphere:port: Force skipping
[2019-03-19 05:12:43,273] DEBUG - Gevent block detected: 3.71600008011
[2019-03-19 05:12:43,681] DEBUG WorkerManager:site..addresshere iphere:port: Verify correct: galleries/something1: here/content.json
[2019-03-19 05:12:43,683] ERROR - Unhandled exception
Traceback (most recent call last):
File "site-packages\gevent\greenlet.py", line 536, in run
File "C:\ZeroNet\core\src\Worker\Worker.py", line 108, in downloader
self.manager.log.error("%s: Error writing: %s (%s)" % (self.key, task["inner_path"], err))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 13: ordinal not in range(128)
[2019-03-19 05:12:43,940] DEBUG WorkerManager:site..addresshere iphere:port: Verify correct: galleries/something2: here/content.json
[2019-03-19 05:12:43,940] ERROR - Unhandled exception
```

There is also other error that is for that particular content i want to open:
`... manifest.json fileGet error: [Errno 22] invalid mode ('rb') or filename: u' ...`

Rebuilding database of the merger site & zeronet restart does not help. And on the hub (that seem to me having issue), it do not show anything in the site's zero menu - corner button)

How this can be fixed and where?

https://duckduckgo.com/?q="UnicodeDecodeError%3A+'ascii'+codec+can't+decode+byte"

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

Bắt đầu với core/src/Worker/Worker.py ở dòng 108 và so sánh traceback với luồng xử lý lỗi downloader xung quanh; site-packages/gevent/greenlet.py là nơi ngoại lệ xuất hiện. Tái hiện lỗi bằng cách sử dụng một đường dẫn bên trong không phải ASCII giống như đường dẫn được hiển thị trong log, sau đó xác minh rằng nội dung của merger được tải mà không có UnicodeDecodeError chưa được xử lý hoặc lỗi tên tệp liên quan.

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
backend
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
28/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.