#4999 Backtrace on push: TypeError: a bytes-like object is required, not 'str'
Closed: Fixed 3 years ago by pingou. Opened 3 years ago by andyp.

$ git push origin mkfsnegativej:master 
Enumerating objects: 22, done.
Counting objects: 100% (22/22), done.
Delta compression using up to 4 threads
Compressing objects: 100% (16/16), done.
Writing objects: 100% (16/16), 3.02 KiB | 3.02 MiB/s, done.
Total 16 (delta 13), reused 0 (delta 0), pack-reused 0
remote: Has commit access: True
remote: Has commit access: True
remote: Traceback (most recent call last):
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 392, in run_project_hooks
remote:     changes=changes,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 111, in runhook
remote:     changes=changes,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/mail.py", line 131, in post_receive
remote:     proc.communicate(stdin)
remote:   File "/usr/lib64/python3.6/subprocess.py", line 848, in communicate
remote:     self._stdin_write(input)
remote:   File "/usr/lib64/python3.6/subprocess.py", line 801, in _stdin_write
remote:     self.stdin.write(input)
remote: TypeError: a bytes-like object is required, not 'str'
remote: Sending to redis to log activity and send commit notification emails
remote: * Publishing information for 3 commits
To ssh://pagure.io/gfs2-utils.git
   0949db15..957ed14e  mkfsnegativej -> master

The commits were pushed ok but the notification emails don't seem to have been sent.


Metadata Update from @ngompa:
- Issue tagged with: bug, email, hook

3 years ago

Metadata Update from @pingou:
- Issue assigned to pingou

3 years ago

Metadata Update from @pingou:
- Issue set to the milestone: 5.12

3 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #5001 Merged 3 years ago