#9247 Creation of new branch via git: Object of type 'Oid' is not JSON serializable
Closed: Fixed 7 months ago by pingou. Opened 7 months ago by ignatenkobrain.

rust-libslirp on  f33 [⇡] took 3s                   
❯ git push origin f33 -u     
check_host_cert: certificate signature algorithm ssh-rsa: signature algorithm not supported
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 440 bytes | 440.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/site-packages/twisted/internet/defer.py", line 501, in errback
remote:     self._startRunCallbacks(fail)
remote:   File "/usr/lib64/python3.6/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
remote:     self._runCallbacks()
remote:   File "/usr/lib64/python3.6/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
remote:     current.result = callback(current.result, *args, **kw)
remote:   File "/usr/lib64/python3.6/site-packages/twisted/internet/defer.py", line 1475, in gotResult
remote:     _inlineCallbacks(r, g, status)
remote: --- <exception caught here> ---
remote:   File "/usr/lib64/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
remote:     result = result.throwExceptionIntoGenerator(g)
remote:   File "/usr/lib64/python3.6/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
remote:     return g.throw(self.type, self.value, self.tb)
remote:   File "/usr/lib/python3.6/site-packages/fedora_messaging/api.py", line 261, in _twisted_publish
remote:     yield _twisted_service._service.factory.publish(message, exchange=exchange)
remote:   File "/usr/lib64/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
remote:     result = result.throwExceptionIntoGenerator(g)
remote:   File "/usr/lib64/python3.6/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
remote:     return g.throw(self.type, self.value, self.tb)
remote:   File "/usr/lib/python3.6/site-packages/fedora_messaging/twisted/factory.py", line 437, in publish
remote:     yield protocol.publish(message, exchange)
remote:   File "/usr/lib64/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
remote:     result = g.send(result)
remote:   File "/usr/lib/python3.6/site-packages/fedora_messaging/twisted/protocol.py", line 297, in publish
remote:     body=message._encoded_body,
remote:   File "/usr/lib/python3.6/site-packages/fedora_messaging/message.py", line 391, in _encoded_body
remote:     return json.dumps(self.body).encode("utf-8")
remote:   File "/usr/lib64/python3.6/json/__init__.py", line 231, in dumps
remote:     return _default_encoder.encode(obj)
remote:   File "/usr/lib64/python3.6/json/encoder.py", line 199, in encode
remote:     chunks = self.iterencode(o, _one_shot=True)
remote:   File "/usr/lib64/python3.6/json/encoder.py", line 257, in iterencode
remote:     return _iterencode(o, 0)
remote:   File "/usr/lib64/python3.6/json/encoder.py", line 180, in default
remote:     o.__class__.__name__)
remote: builtins.TypeError: Object of type 'Oid' is not JSON serializable
remote:                                                    
remote: Emitting a message to the fedora-messaging message bus.
remote: * Publishing information for 1 commits
remote: Error sending fedora-messaging message
remote: Object of type 'Oid' is not JSON serializable
remote:   - to fedora-message
remote: Sending to redis to log activity and send commit notification emails
remote: * Publishing information for 4 commits
remote:   - to fedora-message
remote:                                                    
remote: Create a pull-request for f33
remote:    https://src.fedoraproject.org/rpms/rust-libslirp/diff/master..f33
remote:                                                    
To ssh://pkgs.fedoraproject.org/rpms/rust-libslirp
 * [new branch]      f33 -> f33
Branch 'f33' set up to track remote branch 'f33' from 'origin'.

Happened for rust-libslirp and rust-pommes so I guess it is some generic problem and not one-off.


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

7 months ago

Metadata Update from @mobrien:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: groomed, high-gain, medium-gain

7 months ago

Metadata Update from @pingou:
- Issue untagged with: high-gain
- Issue tagged with: high-trouble

7 months ago

Shoot, I put in the wrong link :(

Metadata Update from @pingou:
- Issue status updated to: Open (was: Closed)

7 months ago

Metadata Update from @pingou:
- Issue assigned to pingou

7 months ago

I was able to reproduce the error locally and it is coming from the git hook stored in ansible (specific for dist-git).

I also have the fix ready :)

Fix merged and deployed, let us know if you see this happening again :)

Login to comment on this ticket.

Metadata
Boards 1
dev Status: Done
Related Pull Requests
  • #4966 Merged 7 months ago