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
* Trying 127.0.0.1:3902...
* Connected to localhost (127.0.0.1) port 3902 (#0)
> GET /oobi/ HTTP/1.1
> Host: localhost:3902
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< Content-Type: application/json
< Vary: Accept
< Content-Length: 38
< Server: Ioflo WSGI Server
< Date: Tue, 14 Nov 2023 12:59:46 GMT
<
* Connection #0 to host localhost left intact
{"title": "500 Internal Server Error"}
Logs:
2023-11-14 13:59:46 [FALCON] [ERROR] GET /oobi/ => Traceback (most recent call last):
File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/keri/db/dbing.py", line 458, in getVal
return(txn.get(key))
lmdb.BadValsizeError: mdb_get: MDB_BAD_VALSIZE: Unsupported size of key/DB name/data, or wrong DUPFIXED size
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "falcon/app.py", line 365, in falcon.app.App.__call__
File "/home/lenkan/code/keria/src/keria/end/ending.py", line 57, in on_get
agent = self.agency.lookup(pre=aid)
File "/home/lenkan/code/keria/src/keria/app/agenting.py", line 253, in lookup
if (prefixer := self.adb.aids.get(keys=(pre,))) is not None:
File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/keri/db/subing.py", line 258, in get
val = self.db.getVal(db=self.sdb, key=self._tokey(keys))
File "/home/lenkan/code/keria/.venv/lib/python3.10/site-packages/keri/db/dbing.py", line 460, in getVal
raise KeyError(f"Key: `{key}` is either empty, too big (for lmdb),"
KeyError: "Key: `b''` is either empty, too big (for lmdb), or wrong DUPFIXED size. ref) lmdb.BadValsizeError"
Expected result
Keria returns with HTTP 4xx. Probably with a 404 as with GET /oobi/missing-aid endpoint:
$ curl -v http://localhost:3902/oobi/missing-aid
* Trying 127.0.0.1:3902...
* Connected to localhost (127.0.0.1) port 3902 (#0)
> GET /oobi/abc HTTP/1.1
> Host: localhost:3902
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Type: application/json
< Vary: Accept
< Content-Length: 72
< Server: Ioflo WSGI Server
< Date: Tue, 14 Nov 2023 13:02:36 GMT
<
* Connection #0 to host localhost left intact
{"title": "404 Not Found", "description": "AID not found for this OOBI"}
Or a 400 saying that an empty AID is invalid.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Start agent
Send a HTTP GET to message endpoint /oobi/
Actual result
Keria responds with internal server error
Logs:
Expected result
Keria returns with HTTP 4xx. Probably with a 404 as with GET /oobi/missing-aid endpoint:
Or a 400 saying that an empty AID is invalid.
The text was updated successfully, but these errors were encountered: