RPC get_full_accounts returns errror on certain valid accounts #572

Closed
opened 2023-12-06 19:47:08 +00:00 by christophersanborn · 5 comments
christophersanborn commented 2023-12-06 19:47:08 +00:00 (Migrated from gitlab.com)

Calling get_full_accounts for certain accounts (that exist and are valid on chain) returns an error rather than full account data.

Accounts that have been identified as causing this issue include: hiltos1, viazi-vidogo

Note: NEX uses this function in its login window, and so affected accounts are unable to log in.

Example:

$ curl -d '{"method":"call","params":["database","get_full_accounts",[["hiltos1"],false]],"id":17}' https://ca.peerplays.info/api | jq .

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   725  100   638  100    87   1762    240 --:--:-- --:--:-- --:--:--  2002

{
  "id": 17,
  "jsonrpc": "2.0",
  "error": {
    "code": 1,
    "message": "Assert Exception: max_depth > 0: ",
    "data": {
      "code": 10,
      "name": "assert_exception",
      "message": "Assert Exception",
      "stack": [
        {
          "context": {
            "level": "error",
            "file": "static_variant.hpp",
            "line": 358,
            "method": "to_variant",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "2023-12-06T19:43:59"
          },
          "format": "max_depth > 0: ",
          "data": {}
        },
        {
          "context": {
            "level": "warn",
            "file": "websocket_api.cpp",
            "line": 128,
            "method": "on_message",
            "hostname": "",
            "thread_name": "th_a",
            "timestamp": "2023-12-06T19:43:59"
          },
          "format": "",
          "data": {
            "call.method": "call",
            "call.params": [
              "database",
              "get_full_accounts",
              [
                [
                  "hiltos1"
                ],
                false
              ]
            ]
          }
        }
      ]
    }
  }
}
Calling `get_full_accounts` for certain accounts (that exist and are valid on chain) returns an error rather than full account data. Accounts that have been identified as causing this issue include: `hiltos1`, `viazi-vidogo` Note: NEX uses this function in its login window, and so affected accounts are unable to log in. Example: ```plaintext $ curl -d '{"method":"call","params":["database","get_full_accounts",[["hiltos1"],false]],"id":17}' https://ca.peerplays.info/api | jq . % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 725 100 638 100 87 1762 240 --:--:-- --:--:-- --:--:-- 2002 { "id": 17, "jsonrpc": "2.0", "error": { "code": 1, "message": "Assert Exception: max_depth > 0: ", "data": { "code": 10, "name": "assert_exception", "message": "Assert Exception", "stack": [ { "context": { "level": "error", "file": "static_variant.hpp", "line": 358, "method": "to_variant", "hostname": "", "thread_name": "th_a", "timestamp": "2023-12-06T19:43:59" }, "format": "max_depth > 0: ", "data": {} }, { "context": { "level": "warn", "file": "websocket_api.cpp", "line": 128, "method": "on_message", "hostname": "", "thread_name": "th_a", "timestamp": "2023-12-06T19:43:59" }, "format": "", "data": { "call.method": "call", "call.params": [ "database", "get_full_accounts", [ [ "hiltos1" ], false ] ] } } ] } } } ```
christophersanborn commented 2023-12-07 16:57:35 +00:00 (Migrated from gitlab.com)

made the issue confidential

made the issue confidential
christophersanborn commented 2023-12-07 17:00:17 +00:00 (Migrated from gitlab.com)

Note, this bug is actually caused by this bug: #574+

Note, this bug is actually caused by this bug: #574+
bobinson commented 2024-01-22 10:02:45 +00:00 (Migrated from gitlab.com)

Hi @christophersanborn - this is addressed right ?

Hi @christophersanborn - this is addressed right ?
christophersanborn commented 2024-01-22 16:35:47 +00:00 (Migrated from gitlab.com)

@bobinson — Correct. The fix was included in 1.6.1.

@bobinson — Correct. The fix was included in 1.6.1.
bobinson commented 2024-01-23 08:22:02 +00:00 (Migrated from gitlab.com)

thanks @christophersanborn

thanks @christophersanborn
bobinson (Migrated from gitlab.com) closed this issue 2024-01-23 08:22:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#572
No description provided.