TypeError: not enough arguments for format string
Sentry Issue: SWH-STORAGE-2X14
QueryCanceled: canceling statement due to statement timeout
File "swh/storage/postgresql/storage.py", line 156, in _meth
return meth(self, *args, **kwargs)
File "swh/core/db/common.py", line 73, in _meth
return meth(self, *args, db=db, cur=cur, **kwargs)
File "swh/storage/postgresql/storage.py", line 908, in revision_get
for line in db.revision_get_from_list(revision_ids, ignore_displayname, cur):
File "swh/storage/postgresql/db.py", line 625, in revision_get_from_list
((sortkey, id) for sortkey, id in enumerate(revisions)),
File "swh/core/db/db_utils.py", line 478, in execute_values_generator
cur.execute(b"".join(parts))
QueryTimeout: QueryTimeout()
(2 additional frame(s) were not displayed)
...
File "swh/storage/metrics.py", line 22, in d
return f(*a, **kw)
File "swh/core/api/negotiation.py", line 153, in newf
return f.negotiator(*args, **kwargs)
File "swh/core/api/negotiation.py", line 81, in __call__
result = self.func(*args, **kwargs)
File "swh/core/api/__init__.py", line 551, in f
ret = obj_meth(**kw)
File "swh/storage/postgresql/storage.py", line 158, in _meth
raise QueryTimeout()
TypeError: not enough arguments for format string
(2 additional frame(s) were not displayed)
...
File "flask/app.py", line 1719, in handle_user_exception
return handler(e)
File "swh/storage/api/server.py", line 106, in default_error_handler
return error_handler(exception, encode_data)
File "swh/core/api/__init__.py", line 442, in error_handler
response = encoder(exception_to_dict(exception))
File "swh/core/api/serializers.py", line 52, in exception_to_dict
"message": str(exception),
File "swh/storage/exc.py", line 24, in __str__
return "An unexpected error occurred in the api backend: %s" % args