Page MenuHomeSoftware Heritage
Paste P503

swh storage logs
ActivePublic

Authored by nahimilega on Aug 13 2019, 10:12 PM.
swh-storage_1 | [2019-08-13 20:10:39 +0000] [41] [DEBUG] POST /content/missing
swh-storage_1 | [2019-08-13 20:10:39 +0000] [41] [DEBUG] POST /directory/missing
swh-storage_1 | [2019-08-13 20:10:39 +0000] [41] [DEBUG] POST /revision/missing
swh-storage_1 | [2019-08-13 20:10:39 +0000] [41] [DEBUG] POST /revision/add
swh-storage_1 | ERROR:root:Object of type bytes is not JSON serializable
swh-storage_1 | Traceback (most recent call last):
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
swh-storage_1 | rv = self.dispatch_request()
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
swh-storage_1 | return self.view_functions[rule.endpoint](**req.view_args)
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/storage/api/server.py", line 36, in d
swh-storage_1 | return f(*a, **kw)
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/storage/api/server.py", line 44, in d
swh-storage_1 | r = f(*a, **kw)
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/storage/api/server.py", line 95, in d
swh-storage_1 | r = f(*a, **kw)
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/storage/api/server.py", line 247, in revision_add
swh-storage_1 | return get_storage().revision_add(**decode_request(request))
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/common.py", line 49, in _meth
swh-storage_1 | return meth(self, *args, db=db, cur=cur, **kwargs)
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/storage/storage.py", line 714, in revision_add
swh-storage_1 | lambda rev: parents_filtered.extend(rev['parents']))
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/__init__.py", line 182, in copy_to
swh-storage_1 | for k in columns]
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/__init__.py", line 182, in <listcomp>
swh-storage_1 | for k in columns]
swh-storage_1 | File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/__init__.py", line 34, in escape
swh-storage_1 | return escape(json.dumps(data))
swh-storage_1 | File "/usr/local/lib/python3.7/json/__init__.py", line 231, in dumps
swh-storage_1 | return _default_encoder.encode(obj)
swh-storage_1 | File "/usr/local/lib/python3.7/json/encoder.py", line 199, in encode
swh-storage_1 | chunks = self.iterencode(o, _one_shot=True)
swh-storage_1 | File "/usr/local/lib/python3.7/json/encoder.py", line 257, in iterencode
swh-storage_1 | return _iterencode(o, 0)
swh-storage_1 | File "/usr/local/lib/python3.7/json/encoder.py", line 179, in default
swh-storage_1 | raise TypeError(f'Object of type {o.__class__.__name__} '
swh-storage_1 | TypeError: Object of type bytes is not JSON serializable
swh-storage_1 | [2019-08-13 20:10:41 +0000] [41] [DEBUG] POST /origin/visit/update
swh-storage_1 | [2019-08-13 20:10:41 +0000] [41] [DEBUG] Closing connection.

Event Timeline

nahimilega created this object in space S1 Public.