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
Was testing my Lua binding (and later confirmed with curl) with the daemon, and found an issue. The status daemon API call will return an error from the daemon when including the parameter "session_status": true, but only when it is the first call to the daemon.
Steps to reproduce
Fully quit the daemon if it's running.
Start the daemon.
Call status with the parameter "session_status": true. curl http://localhost:5279 --data {"method": "status", "params": {"session_status": true}}
Expected behaviour
The daemon should include the session status field in the response.
Actual behaviour
{
"error": {
"code": -32500,
"data": [
" File \"site-packages/twisted/internet/defer.py\", line 1299, in _inlineCallbacks",
"",
" File \"site-packages/lbrynet/daemon/Daemon.py\", line 1103, in jsonrpc_status",
"",
"exceptions.AttributeError: 'NoneType' object has no attribute 'get_all_verified_blobs'"
],
"message": "'NoneType' object has no attribute 'get_all_verified_blobs'"
},
"id": null,
"jsonrpc": "2.0"
}
System Configuration
I personally removed the ip field when submitting the issue. Ignore that part.
I am able to reproduce if you call this early on during daemon startup, but I'll have to try again with #1164 - this changes the startup of the daemon. If you have some time, can you give it a shot as well?
Session status has been removed as a parameter in 0.21 (components refactor). We are now able to successfully call a status early in the daemon startup process.
The Issue
Was testing my Lua binding (and later confirmed with curl) with the daemon, and found an issue. The
status
daemon API call will return an error from the daemon when including the parameter"session_status": true
, but only when it is the first call to the daemon.Steps to reproduce
status
with the parameter"session_status": true
.curl http://localhost:5279 --data {"method": "status", "params": {"session_status": true}}
Expected behaviour
The daemon should include the session status field in the response.
Actual behaviour
System Configuration
I personally removed the
ip
field when submitting the issue. Ignore that part.The text was updated successfully, but these errors were encountered: