HelloZeroNet / HelloZeroNet/ZeroNet
greenlet.py, worker.py - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 13: ordinal not in range(128)
- 主要言語
- JavaScript
- スター
- 18.8k
- フォーク
- 2.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
### 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"
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start with core/src/Worker/Worker.py at line 108 and compare the traceback with the surrounding downloader error-handling path; site-packages/gevent/greenlet.py is where the exception surfaces. Reproduce the failure using a non-ASCII inner path such as the one shown in the log, then verify that the merger content loads without the unhandled UnicodeDecodeError or related filename error.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 28/100