steem-js icon indicating copy to clipboard operation
steem-js copied to clipboard

broadcast.voteAsync return TypeError

Open Cengkaruk opened this issue 6 years ago • 1 comments

Expected behavior

Should work normally like api.*Async

Actual behavior

Async call return this error

TypeError: null is not an object (evaluating 'this[c]')

How to reproduce

I'm using React Native with Redux + Saga. The code are normally like another saga-effect's call.

  try {
    yield call(broadcast.voteAsync, login.postingPrivateKey, login.username, author, permalink, weight)
    yield put(PostActions.postVoteSuccess())
  } catch (error) {
    console.log(error)
    yield put(PostActions.postVoteFailure())
  }

Environment information

"node-libs-react-native": "^1.0.2",
"react": "16.0.0",
"react-native": "0.50.4",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-persist": "^5.4.0",
"redux-saga": "^0.16.0",
"reduxsauce": "0.7.0",
"steem": "0.6.7",

Cengkaruk avatar Apr 17 '18 18:04 Cengkaruk

Where exactly error is thrown? Could you provide full error message?

BartolomeoItaliano avatar Apr 17 '18 19:04 BartolomeoItaliano