You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log messages like the one made below should not throw encoding errors:
classKevery:
...
defprocessEscrowPartialDels(self):
...
dgkey=dgKey(epre, edig)
ifnot (esr:=self.db.esrs.get(keys=dgkey)): # get event source, otherwise error# no local source so raise ValidationError which unescrows belowmsg=f"PDE Missing escrowed event source at dig = {bytes(edig)}"logger.info("Kevery unescrow error: %s", msg)
raiseValidationError(msg)
Actual behavior
Many of my recent log messages introduced with the logging overhauls have a bare bytes(...) data structure in them and as such are causing the wrong errors to be thrown during escrow object validation, and likely other places.
All places such log messages are created in 1.1.32, 1.2.6, and main need to be fixed.
For example, the following error needs to be resolved:
2025-04-2221:22:48 [sally] ERRORKeveryPDEunescrowed: stringargumentwithoutanencodingTraceback (mostrecentcalllast):
File"/keripy/src/keri/core/eventing.py", line5941, inprocessEscrowPartialDelsmsg=f"PDE Stale event escrow at dig = {bytes(edig)}"^^^^^^^^^^^TypeError: stringargumentwithoutanencoding
By specifying an encoding like below:
msg=f"PDE Stale event escrow at dig = {bytes(edig).encode('utf-8')}"
Steps to reproduce
Send a credential presentation to Sally that does not have a delegation fully complete and this error will be triggered.
The text was updated successfully, but these errors were encountered:
Version
1.1.32, 1.2.6, main
Environment
All
Expected behavior
Log messages like the one made below should not throw encoding errors:
Actual behavior
Many of my recent log messages introduced with the logging overhauls have a bare
bytes(...)
data structure in them and as such are causing the wrong errors to be thrown during escrow object validation, and likely other places.All places such log messages are created in 1.1.32, 1.2.6, and main need to be fixed.
For example, the following error needs to be resolved:
By specifying an encoding like below:
Steps to reproduce
Send a credential presentation to Sally that does not have a delegation fully complete and this error will be triggered.
The text was updated successfully, but these errors were encountered: