HelloZeroNet / HelloZeroNet/ZeroNet

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

Abierto
#1,924 4 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
JavaScript
Estrellas
18.8k
Forks
2.3k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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"

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
backend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
28/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.