scoin / multichain-node

A simple wrapper for Multichain's JSON RPC api that parses your input.
MIT License
73 stars 54 forks source link

"verbose" is NOT an optional parameter for multichain.listStreamKeyItems, multichain.listStreamItems #30

Open akshitsingla opened 6 years ago

akshitsingla commented 6 years ago

Tried using these two methods with parameters "stream" & "start" only, but encountered this error: { code: -8, message: 'Invalid parameter value type, should be boolean' }

Error skipped when included the verbose option/parameter.

shrishankit commented 4 years ago

I am trying the multichain.listStreamItems with the verbose set to true still, it gives invalid input, even if the stream is present.

/multichain-node/lib/rpccall.js:35 throw ${args} is invalid input. ^ stream1 is invalid input.

shrishankit commented 4 years ago

I am trying the multichain.listStreamItems with the verbose set to true still, it gives invalid input, even if the stream is present.

/multichain-node/lib/rpccall.js:35 throw ${args} is invalid input. ^ stream1 is invalid input.

My bad the stream has permission issue. But Do Not use just throw err since err here is a object here you can console.log(err) or use throw err.message and throw err.code.