Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-8131

Exception when trying to serialize Manifest type for caching on referrers endpoint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • quay, quay.io
    • False
    • None
    • False

      2024-10-21T13:45:56.932Z quay-py3-app-554cc79c5b-wt75p gunicorn-registry[76]: 2024-10-21 13:45:56,931 [75204] [ERROR] [data.cache.impl] Got unknown exception when trying to set key manifest_referrers__<Repository> #2548264_sha256:dec449be52c45a217a9d6b424173458f1cb627f8da3f26668dfa6724130072f8 to [<Manifest> #161273440]: Object of type Manifest is not JSON serializable Traceback (most recent call last):   File "/quay-registry/data/cache/impl.py", line 333, in retrieve     json.dumps(result),   File "/usr/lib64/python3.9/json/__init__.py", line 231, in dumps     return _default_encoder.encode(obj)   File "/usr/lib64/python3.9/json/encoder.py", line 199, in encode     chunks = self.iterencode(o, _one_shot=True)   File "/usr/lib64/python3.9/json/encoder.py", line 257, in iterencode     return _iterencode(o, 0)   File "/usr/lib64/python3.9/json/encoder.py", line 179, in default     raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type Manifest is not JSON serializable 

              sleesinc Kenny Lee Sin Cheong
              sleesinc Kenny Lee Sin Cheong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: