Project

General

Profile

Bug #11005

unicode dans une trace

Added by Frédéric Péters (de retour le 10/10) over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Target version:
Start date:
20 May 2016
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

  File "/home/fred/src/eo/wcs/wcs/qommon/publisher.py", line 232, in _generate_plaintext_error
    return error_file.getvalue()
  File "/usr/lib/python2.7/StringIO.py", line 271, in getvalue
    self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 44: ordinal not in range(128)

parce que :

(Pdb) pp error_file.__dict__
{'buf': '',
 'buflist': ['Exception:',
             '\n',
             u"  type = '<type 'exceptions.TypeError'>', value = '<PicklableUpload at 7f144626e5a8: Capture d'cran 2016-05-02  14.59.42.png> is 
not JSON serializable'",

Files

Associated revisions

Revision 4559de64 (diff)
Added by Frédéric Péters (de retour le 10/10) over 6 years ago

misc: make sure no unicode is emitted in traces (#11005)

History

#2

Updated by Thomas Noël over 6 years ago

Ack

(mais on est d'accord, au passage, que le <PicklableUpload ...> is not JSON serializable est une ancienne trace, résolue par #11000 ?)

#3

Updated by Frédéric Péters (de retour le 10/10) over 6 years ago

  • Status changed from En cours to Résolu (à déployer)

Yep, c'est lors du debug de celle-là que je suis tombé sur celle-ci. (et les bugs dans le système de trace, ça complique le debug…)

commit 4559de64eeb0324eb5ed8a6f36070f28083715cb
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri May 20 14:08:05 2016 +0200

    misc: make sure no unicode is emitted in traces (#11005)
#4

Updated by Thomas Noël over 6 years ago

  • Target version set to v1.43
#5

Updated by Frédéric Péters (de retour le 10/10) over 6 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF