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
So, there is no info, thus the observer tries to parse info from as_json, but this is missing since v11, hence:
KeyError: 'as_json'Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/media/psf/Home/git/gh/oxen-io/oxen-observer/observer.py", line 330, in main
txs = parse_txs(tx_req(omq, oxend, txids, cache_key='mempool').get())
File "/media/psf/Home/git/gh/oxen-io/oxen-observer/observer.py", line 642, in parse_txs
tx['info'] = json.loads(tx["as_json"])
KeyError: 'as_json'
martin-braun
changed the title
Observer can't read transactions: KeyError: 'as_json'
Make Observer compatible with v11 rpc.get_transactionsSep 21, 2023
v11
oxend
returns transactions such as:So, there is no
info
, thus the observer tries to parseinfo
fromas_json
, but this is missing since v11, hence:See
oxen-observer/observer.py
Line 641 in 0cafbba
The text was updated successfully, but these errors were encountered: