#3289 Traceback when trying to send email when creating new local user with pagure-git (babac47)
Closed: Fixed 5 years ago Opened 5 years ago by ngompa.

When using Pagure with git snapshot code (git commit babac47), I get a traceback when trying to create a local user:

[Sat Jun 09 11:14:13.227473 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770] [2018-06-09 11:14:13,217] ERROR in app: Exception on /user/new [POST]
[Sat Jun 09 11:14:13.227520 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770] Traceback (most recent call last):
[Sat Jun 09 11:14:13.227526 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
[Sat Jun 09 11:14:13.227529 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]     response = self.full_dispatch_request()
[Sat Jun 09 11:14:13.227533 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
[Sat Jun 09 11:14:13.227536 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]     rv = self.handle_user_exception(e)
[Sat Jun 09 11:14:13.227539 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
[Sat Jun 09 11:14:13.227543 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]     reraise(exc_type, exc_value, tb)
[Sat Jun 09 11:14:13.227546 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
[Sat Jun 09 11:14:13.227549 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]     rv = self.dispatch_request()
[Sat Jun 09 11:14:13.227552 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
[Sat Jun 09 11:14:13.227555 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]     return self.view_functions[rule.endpoint](**req.view_args)
[Sat Jun 09 11:14:13.227559 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]   File "/usr/lib/python2.7/site-packages/pagure/ui/login.py", line 69, in new_user
[Sat Jun 09 11:14:13.227562 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]     send_confirmation_email(user)
[Sat Jun 09 11:14:13.227565 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]   File "/usr/lib/python2.7/site-packages/pagure/ui/login.py", line 366, in send_confirmation_email
[Sat Jun 09 11:14:13.227575 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]     to_mail=user.emails[0].email,
[Sat Jun 09 11:14:13.227579 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]   File "/usr/lib/python2.7/site-packages/pagure/lib/notify.py", line 333, in send_email
[Sat Jun 09 11:14:13.227582 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770]     + mailto.encode("utf-8"))
[Sat Jun 09 11:14:13.227586 2018] [wsgi:error] [pid 11282] [remote 127.0.0.1:48770] AttributeError: 'NoneType' object has no attribute 'encode'

It seems like something isn't propagating properly to the notify code...


There is no traceback when I do the same thing in Pagure 4.0.3, so it was definitely introduced after then.

Metadata Update from @pingou:
- Issue assigned to karsten

5 years ago

Metadata Update from @pingou:
- Issue tagged with: bug

5 years ago

Login to comment on this ticket.

Metadata