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
I tried using the branch here WebOfTrust/signify-ts#118 to create a credential and sending an IPEX grant message to a holder AID. The holder receives a notification as I would expect.
However, when I was trying to figure out how to send back an "admit" message from the holder I inspected the /identifiers/{name}/exchanges/query endpoint in KERIA and noticed an internal server error originating from here:
The error is that bytearray is not serializable to JSON. The values in the "pathed" dictionary that are of type bytearray. I probably shouldn't be using the /exchanges/query endpoint directly (?). But I thought it might be important to catch the error anyway. Unfortunately I cannot navigate the KERIA codebase well enough to create a minimal reproduction at the moment.
This is the received error message:
keri: Parsed Request:
POST /identifiers/recipient/exchanges/query {(1, 1)
Hict([('host', '127.0.0.1:3901'), ('connection', 'keep-alive'), ('content-type', 'application/json'), ('signature', 'indexed="?0";signify="..."'), ('signature-input', 'signify=("@method" "@path" "signify-resource" "signify-timestamp");created=1697557238;keyid="...";alg="ed25519"'), ('signify-resource', '...'), ('signify-timestamp', '2023-10-17T15:40:38.274000+00:00'), ('accept', '*/*'), ('accept-language', '*'), ('sec-fetch-mode', 'cors'), ('user-agent', 'undici'), ('accept-encoding', 'gzip, deflate'), ('content-length', '2')])
2023-10-17 15:40:38 [FALCON] [ERROR] POST /identifiers/recipient/exchanges/query => Traceback (most recent call last):
File "falcon/app.py", line 365, in falcon.app.App.__call__
File "/usr/local/lib/python3.10/site-packages/keria/peer/exchanging.py", line 143, in on_post
rep.data = json.dumps(exns).encode("utf-8")
File "/usr/local/lib/python3.10/json/__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
File "/usr/local/lib/python3.10/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.10/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/usr/local/lib/python3.10/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type bytearray is not JSON serializable
The text was updated successfully, but these errors were encountered:
I tried using the branch here WebOfTrust/signify-ts#118 to create a credential and sending an IPEX grant message to a holder AID. The holder receives a notification as I would expect.
However, when I was trying to figure out how to send back an "admit" message from the holder I inspected the /identifiers/{name}/exchanges/query endpoint in KERIA and noticed an internal server error originating from here:
keria/src/keria/peer/exchanging.py
Line 143 in e2a6b96
The error is that bytearray is not serializable to JSON. The values in the "pathed" dictionary that are of type bytearray. I probably shouldn't be using the /exchanges/query endpoint directly (?). But I thought it might be important to catch the error anyway. Unfortunately I cannot navigate the KERIA codebase well enough to create a minimal reproduction at the moment.
This is the received error message:
The text was updated successfully, but these errors were encountered: