If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

[traceback] Unicode error in celery task in group invites

VERIFIED FIXED

Status

Participation Infrastructure
Phonebook
VERIFIED FIXED
2 years ago
a year ago

People

(Reporter: tasos, Assigned: tasos)

Tracking

2016-4.2

Details

(Assignee)

Description

2 years ago
A celery task responsible for sending out invitations to join a group is producing the following traceback

Traceback (most recent call last):
  File "/data/www/mozillians.org/venv/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/data/www/mozillians.org/venv/lib/python2.7/site-packages/newrelic-2.52.0.40/newrelic/hooks/application_celery.py", line 66, in wrapper
    return wrapped(*args, **kwargs)
  File "/data/www/mozillians.org/venv/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "/data/www/mozillians.org/mozillians/mozillians/groups/tasks.py", line 188, in notify_curators_invitation_accepted
    subject = _(subject_msg.format(invite.redeemer.full_name, invite.group.name))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u017b' in position 4: ordinal not in range(128)

Comment 1

2 years ago
Commits pushed to master at https://github.com/mozilla/mozillians

https://github.com/mozilla/mozillians/commit/74b60cde37f412c65ca3a1b87689536a8e9bed33
[fix bug 1262079] Fix unicode error in group tasks.

https://github.com/mozilla/mozillians/commit/4cfc4524de17876e4d439a231a2aae25be2d7c49
Merge pull request #1427 from akatsoulas/1262079-unicode

[fix bug 1262079] Fix unicode error in group tasks.

Updated

2 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
Version: other → next
Verified on stage:

Prod:
* Reproduced error in prod

Stage:
* Added a new invitation for the failing full name
* Sent an invitation
* No errors, emails are Unicode encoded
Status: RESOLVED → VERIFIED
(Assignee)

Updated

a year ago
Version: next → 2016-4.2
You need to log in before you can comment on or make changes to this bug.