masking proxy web traceback on masked content
The snippet can be accessed without any authentication.
Authored by
Jérémy Bobbio (Lunar)
Edited
swh-storage-public-1 | Some objects are masked: swh:1:cnt:a6d1888d25fd8e84986f386ee0cdc8a1fc3c09b4 by request 4fc2aac4-a6df-413b-a69f-b34df1ada4f0 (DECISION_PENDING)
swh-storage-public-1 | Traceback (most recent call last):
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 870, in full_dispatch_request
swh-storage-public-1 | rv = self.dispatch_request()
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 855, in dispatch_request
swh-storage-public-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/metrics.py", line 28, in d
swh-storage-public-1 | return f(*a, **kw)
swh-storage-public-1 | ^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/negotiation.py", line 153, in newf
swh-storage-public-1 | return f.negotiator(*args, **kwargs)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/negotiation.py", line 81, in __call__
swh-storage-public-1 | result = self.func(*args, **kwargs)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/__init__.py", line 551, in f
swh-storage-public-1 | ret = obj_meth(**kw)
swh-storage-public-1 | ^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 454, in newf
swh-storage-public-1 | self._raise_if_masked_result_in_list(method_name, results)
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 436, in _raise_if_masked_result_in_list
swh-storage-public-1 | self._raise_if_masked_swhids(list(result_swhids))
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 184, in _raise_if_masked_swhids
swh-storage-public-1 | raise MaskedObjectException(masked)
swh-storage-public-1 | swh.storage.exc.MaskedObjectException: Some objects are masked: swh:1:cnt:a6d1888d25fd8e84986f386ee0cdc8a1fc3c09b4 by request 4fc2aac4-a6df-413b-a69f-b34df1ada4f0 (DECISION_PENDING)
swh-storage-public-1 | [2024-04-02 16:14:38,837] ERROR in app: Exception on /content/present [POST]
swh-storage-public-1 | Traceback (most recent call last):
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 870, in full_dispatch_request
swh-storage-public-1 | rv = self.dispatch_request()
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 855, in dispatch_request
swh-storage-public-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/metrics.py", line 28, in d
swh-storage-public-1 | return f(*a, **kw)
swh-storage-public-1 | ^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/negotiation.py", line 153, in newf
swh-storage-public-1 | return f.negotiator(*args, **kwargs)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/negotiation.py", line 81, in __call__
swh-storage-public-1 | result = self.func(*args, **kwargs)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/__init__.py", line 551, in f
swh-storage-public-1 | ret = obj_meth(**kw)
swh-storage-public-1 | ^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 454, in newf
swh-storage-public-1 | self._raise_if_masked_result_in_list(method_name, results)
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 436, in _raise_if_masked_result_in_list
swh-storage-public-1 | self._raise_if_masked_swhids(list(result_swhids))
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 184, in _raise_if_masked_swhids
swh-storage-public-1 | raise MaskedObjectException(masked)
swh-storage-public-1 | swh.storage.exc.MaskedObjectException: Some objects are masked: swh:1:cnt:a6d1888d25fd8e84986f386ee0cdc8a1fc3c09b4 by request 4fc2aac4-a6df-413b-a69f-b34df1ada4f0 (DECISION_PENDING)
swh-storage-public-1 |
swh-storage-public-1 | During handling of the above exception, another exception occurred:
swh-storage-public-1 |
swh-storage-public-1 | Traceback (most recent call last):
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 1463, in wsgi_app
swh-storage-public-1 | response = self.full_dispatch_request()
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 872, in full_dispatch_request
swh-storage-public-1 | rv = self.handle_user_exception(e)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 762, in handle_user_exception
swh-storage-public-1 | return self.ensure_sync(handler)(e) # type: ignore[no-any-return]
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/api/server.py", line 106, in default_error_handler
swh-storage-public-1 | return error_handler(exception, encode_data)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/__init__.py", line 442, in error_handler
swh-storage-public-1 | response = encoder(exception_to_dict(exception))
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/__init__.py", line 395, in encode_data_server
swh-storage-public-1 | encoded_data = ENCODERS[content_type](data, extra_encoders=extra_type_encoders)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/serializers.py", line 274, in msgpack_dumps
swh-storage-public-1 | return msgpack.packb(
swh-storage-public-1 | ^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/msgpack/__init__.py", line 36, in packb
swh-storage-public-1 | return Packer(**kwargs).pack(o)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "msgpack/_packer.pyx", line 294, in msgpack._cmsgpack.Packer.pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 300, in msgpack._cmsgpack.Packer.pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 297, in msgpack._cmsgpack.Packer.pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 231, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 264, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 229, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 291, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | TypeError: can not serialize 'ExtendedSWHID' object
swh-storage-public-1 | Exception on /content/present [POST]
swh-storage-public-1 | Traceback (most recent call last):
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 870, in full_dispatch_request
swh-storage-public-1 | rv = self.dispatch_request()
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 855, in dispatch_request
swh-storage-public-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/metrics.py", line 28, in d
swh-storage-public-1 | return f(*a, **kw)
swh-storage-public-1 | ^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/negotiation.py", line 153, in newf
swh-storage-public-1 | return f.negotiator(*args, **kwargs)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/negotiation.py", line 81, in __call__
swh-storage-public-1 | result = self.func(*args, **kwargs)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/__init__.py", line 551, in f
swh-storage-public-1 | ret = obj_meth(**kw)
swh-storage-public-1 | ^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 454, in newf
swh-storage-public-1 | self._raise_if_masked_result_in_list(method_name, results)
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 436, in _raise_if_masked_result_in_list
swh-storage-public-1 | self._raise_if_masked_swhids(list(result_swhids))
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 184, in _raise_if_masked_swhids
swh-storage-public-1 | raise MaskedObjectException(masked)
swh-storage-public-1 | swh.storage.exc.MaskedObjectException: Some objects are masked: swh:1:cnt:a6d1888d25fd8e84986f386ee0cdc8a1fc3c09b4 by request 4fc2aac4-a6df-413b-a69f-b34df1ada4f0 (DECISION_PENDING)
swh-storage-public-1 |
swh-storage-public-1 | During handling of the above exception, another exception occurred:
swh-storage-public-1 |
swh-storage-public-1 | Traceback (most recent call last):
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 1463, in wsgi_app
swh-storage-public-1 | response = self.full_dispatch_request()
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 872, in full_dispatch_request
swh-storage-public-1 | rv = self.handle_user_exception(e)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 762, in handle_user_exception
swh-storage-public-1 | return self.ensure_sync(handler)(e) # type: ignore[no-any-return]
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/api/server.py", line 106, in default_error_handler
swh-storage-public-1 | return error_handler(exception, encode_data)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/__init__.py", line 442, in error_handler
swh-storage-public-1 | response = encoder(exception_to_dict(exception))
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/__init__.py", line 395, in encode_data_server
swh-storage-public-1 | encoded_data = ENCODERS[content_type](data, extra_encoders=extra_type_encoders)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/serializers.py", line 274, in msgpack_dumps
swh-storage-public-1 | return msgpack.packb(
swh-storage-public-1 | ^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/msgpack/__init__.py", line 36, in packb
swh-storage-public-1 | return Packer(**kwargs).pack(o)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "msgpack/_packer.pyx", line 294, in msgpack._cmsgpack.Packer.pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 300, in msgpack._cmsgpack.Packer.pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 297, in msgpack._cmsgpack.Packer.pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 231, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 264, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 229, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 291, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | TypeError: can not serialize 'ExtendedSWHID' object
swh-storage-public-1 | 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
swh-storage-public-1 | Traceback (most recent call last):
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 870, in full_dispatch_request
swh-storage-public-1 | rv = self.dispatch_request()
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 855, in dispatch_request
swh-storage-public-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/metrics.py", line 28, in d
swh-storage-public-1 | return f(*a, **kw)
swh-storage-public-1 | ^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/negotiation.py", line 153, in newf
swh-storage-public-1 | return f.negotiator(*args, **kwargs)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/negotiation.py", line 81, in __call__
swh-storage-public-1 | result = self.func(*args, **kwargs)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/__init__.py", line 551, in f
swh-storage-public-1 | ret = obj_meth(**kw)
swh-storage-public-1 | ^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 454, in newf
swh-storage-public-1 | self._raise_if_masked_result_in_list(method_name, results)
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 436, in _raise_if_masked_result_in_list
swh-storage-public-1 | self._raise_if_masked_swhids(list(result_swhids))
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/proxies/masking/__init__.py", line 184, in _raise_if_masked_swhids
swh-storage-public-1 | raise MaskedObjectException(masked)
swh-storage-public-1 | swh.storage.exc.MaskedObjectException: Some objects are masked: swh:1:cnt:a6d1888d25fd8e84986f386ee0cdc8a1fc3c09b4 by request 4fc2aac4-a6df-413b-a69f-b34df1ada4f0 (DECISION_PENDING)
swh-storage-public-1 |
swh-storage-public-1 | During handling of the above exception, another exception occurred:
swh-storage-public-1 |
swh-storage-public-1 | Traceback (most recent call last):
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 1463, in wsgi_app
swh-storage-public-1 | response = self.full_dispatch_request()
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 872, in full_dispatch_request
swh-storage-public-1 | rv = self.handle_user_exception(e)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/flask/app.py", line 762, in handle_user_exception
swh-storage-public-1 | return self.ensure_sync(handler)(e) # type: ignore[no-any-return]
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/storage/api/server.py", line 106, in default_error_handler
swh-storage-public-1 | return error_handler(exception, encode_data)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/__init__.py", line 442, in error_handler
swh-storage-public-1 | response = encoder(exception_to_dict(exception))
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/__init__.py", line 395, in encode_data_server
swh-storage-public-1 | encoded_data = ENCODERS[content_type](data, extra_encoders=extra_type_encoders)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/swh/core/api/serializers.py", line 274, in msgpack_dumps
swh-storage-public-1 | return msgpack.packb(
swh-storage-public-1 | ^^^^^^^^^^^^^^
swh-storage-public-1 | File "/srv/softwareheritage/venv/lib/python3.11/site-packages/msgpack/__init__.py", line 36, in packb
swh-storage-public-1 | return Packer(**kwargs).pack(o)
swh-storage-public-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
swh-storage-public-1 | File "msgpack/_packer.pyx", line 294, in msgpack._cmsgpack.Packer.pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 300, in msgpack._cmsgpack.Packer.pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 297, in msgpack._cmsgpack.Packer.pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 231, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 264, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 229, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | File "msgpack/_packer.pyx", line 291, in msgpack._cmsgpack.Packer._pack
swh-storage-public-1 | TypeError: can not serialize 'ExtendedSWHID' object
Please register or sign in to comment