Skip to content

Are the docs out of date? #469

@edukaded

Description

@edukaded

I am getting a strange error.
My code is literally taken right off the front page...

steem.api.getDiscussionsByPayout(query, function(err, result) {
  console.log(err, result);
});

The error I get is

Error [RPCError]: Assert Exception:method_itr != api_itr->second.end(): Could not find method get_discussions_by_payout
    at new RPCError (/home/username/Projects/steem-manager/node_modules/steem/lib/api/transports/http.js:43:106)
    at /home/username/Projects/steem-manager/node_modules/steem/lib/api/transports/http.js:93:13
    at processTicksAndRejections (internal/process/task_queues.js:94:5) {
  name: 'RPCError',
  code: -32002,
  data: {
    code: 10,
    name: 'assert_exception',
    message: 'Assert Exception',
    stack: [ [Object] ]
  }
}

Expected behavior

I expected that line of code to work, perhaps with a limit, (would be nice if query were documented somewhere)

Actual behavior

It threw the above error

How to reproduce

Run the sample code from the readme

Environment information

Ubuntu Bionic, Node 10

My guess is the docs are out of date and possibly the code. Is there a way to get a list of what is expected to work now days? Also is there someplace where query is documented? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions