#1656 TypeError: can't concat str to bytes with --debug-xmlrpc enabled
Closed: Fixed 4 years ago by tkopecek. Opened 4 years ago by davidlt.

I am having issues with kojid in Fedora 30 (up to date) and decided to enable debugging (--verbose --debug --debug-xmlrpc --debug-task) . Then createdistrepo task failed with:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/koji/daemon.py", line 1292, in runTask
    response = (handler.run(),)
  File "/usr/lib/python3.7/site-packages/koji/tasks.py", line 314, in run
    return koji.util.call_with_argcheck(self.handler, self.params, self.opts)
  File "/usr/lib/python3.7/site-packages/koji/util.py", line 263, in call_with_argcheck
    return func(*args, **kwargs)
  File "/usr/sbin/kojid", line 5482, in handler
    self.get_rpms(tag, arch, keys, opts)
  File "/usr/sbin/kojid", line 5942, in get_rpms
    self.session.uploadWrapper(missing_log, self.uploadpath)
  File "/usr/lib/python3.7/site-packages/koji/__init__.py", line 2791, in uploadWrapper
    self.fastUpload(localfile, path, name, callback, blocksize, overwrite, volume=volume)
  File "/usr/lib/python3.7/site-packages/koji/__init__.py", line 2720, in fastUpload
    result = self._callMethod('rawUpload', (chunk, ofs, path, name), callopts)
  File "/usr/lib/python3.7/site-packages/koji/__init__.py", line 2575, in _callMethod
    return self._sendCall(handler, headers, request)
  File "/usr/lib/python3.7/site-packages/koji/__init__.py", line 2497, in _sendCall
    return self._sendOneCall(handler, headers, request)
  File "/usr/lib/python3.7/site-packages/koji/__init__.py", line 2532, in _sendOneCall
    _val = _val[:1024] + '...'
TypeError: can't concat str to bytes

From /usr/lib/python3.7/site-packages/koji/__init__.py

   2527         if self.opts.get('debug_xmlrpc', False):
   2528             self.logger.debug("url: %s" % handler)
   2529             for _key in callopts:
   2530                 _val = callopts[_key]
   2531                 if _key == 'data' and len(_val) > 1024:
   2532                     _val = _val[:1024] + '...'
   2533                 self.logger.debug("%s: %r" % (_key, _val)

Metadata Update from @tkopecek:
- Custom field Size adjusted to small
- Issue set to the milestone: 1.19
- Issue tagged with: bug, easyfix

4 years ago

Metadata Update from @dgregor:
- Issue assigned to tkopecek

4 years ago

Metadata Update from @jcupova:
- Issue tagged with: testing-done

4 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1657 Merged 4 years ago