Skip to content

Instantly share code, notes, and snippets.

@ceoooooo
Created August 2, 2018 12:06
Show Gist options
  • Save ceoooooo/c9dd5bc6475801180785dc963e29647a to your computer and use it in GitHub Desktop.
Save ceoooooo/c9dd5bc6475801180785dc963e29647a to your computer and use it in GitHub Desktop.
➜ curl --data '{"jsonrpc": "2.0", "method": "list_accounts", "params": ["gm",200], "id": 1}' http://213.133.103.178:14557/rpc
{"id":1,"error":{"code":1,"message":"10 assert_exception: Assert Exception\n!ec: websocket send failed: invalid state\n {\"msg\":\"invalid state\"}\n th_a websocket.cpp:164 send_message\n\n {\"call.method\":\"list_accounts\",\"call.params\":[\"gm\",200]}\n th_a http_api.cpp:107 on_request","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"websocket.cpp","line":164,"method":"send_message","hostname":"","thread_name":"th_a","timestamp":"2018-08-02T12:06:21"},"format":"!ec: websocket send failed: ${msg}","data":{"msg":"invalid state"}},{"context":{"level":"warn","file":"http_api.cpp","line":107,"method":"on_request","hostname":"","thread_name":"th_a","timestamp":"2018-08-02T12:06:21"},"format":"","data":{"call.method":"list_accounts","call.params":["gm",200]}}]}}}%
14:06:22 in ~
➜ curl --data '{"jsonrpc": "2.0", "method": "list_accounts", "params": ["gm",200], "id": 1}' http://213.133.103.178:14557/rpc
{"id":1,"result":[["init0","1.2.6"],["init1","1.2.7"],["init10","1.2.16"],["init2","1.2.8"],["init3","1.2.9"],["init4","1.2.10"],["init5","1.2.11"],["init6","1.2.12"],["init7","1.2.13"],["init8","1.2.14"],["init9","1.2.15"],["nathan","1.2.17"],["null-account","1.2.3"],["proxy-to-self","1.2.5"],["relaxed-committee-account","1.2.2"],["temp-account","1.2.4"],["witness-account","1.2.1"]]}%
14:06:22 in ~
➜ curl --data '{"jsonrpc": "2.0", "method": "list_accounts", "params": ["gm",200], "id": 1}' http://213.133.103.178:14557/rpc
{"id":1,"error":{"code":1,"message":"10 assert_exception: Assert Exception\n!ec: websocket send failed: invalid state\n {\"msg\":\"invalid state\"}\n th_a websocket.cpp:164 send_message\n\n {\"call.method\":\"list_accounts\",\"call.params\":[\"gm\",200]}\n th_a http_api.cpp:107 on_request","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"websocket.cpp","line":164,"method":"send_message","hostname":"","thread_name":"th_a","timestamp":"2018-08-02T12:06:23"},"format":"!ec: websocket send failed: ${msg}","data":{"msg":"invalid state"}},{"context":{"level":"warn","file":"http_api.cpp","line":107,"method":"on_request","hostname":"","thread_name":"th_a","timestamp":"2018-08-02T12:06:23"},"format":"","data":{"call.method":"list_accounts","call.params":["gm",200]}}]}}}%
14:06:23 in ~
➜ curl --data '{"jsonrpc": "2.0", "method": "list_accounts", "params": ["gm",200], "id": 1}' http://213.133.103.178:14557/rpc
{"id":1,"result":[["init0","1.2.6"],["init1","1.2.7"],["init10","1.2.16"],["init2","1.2.8"],["init3","1.2.9"],["init4","1.2.10"],["init5","1.2.11"],["init6","1.2.12"],["init7","1.2.13"],["init8","1.2.14"],["init9","1.2.15"],["nathan","1.2.17"],["null-account","1.2.3"],["proxy-to-self","1.2.5"],["relaxed-committee-account","1.2.2"],["temp-account","1.2.4"],["witness-account","1.2.1"]]}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment