Git Product home page Git Product logo

Comments (6)

svk31 avatar svk31 commented on August 23, 2024 1

The error message means that the expiration time of the transaction was already passed by the time it was broadcas,t, so it was rejected by the blockchain. Could be an issue with your local clock being out of sync for example.

from steem-js.

bonustrack avatar bonustrack commented on August 23, 2024

You can rather use Steem.js on browser or service side, you don't need server side to broadcast vote if you don't want to. The vote should work, this error come from the blockchain, my guess is that you are voting for a post too old. Can you show me the params you are using?

from steem-js.

unipsycho avatar unipsycho commented on August 23, 2024

Thanks for the ideas guys. This is using on recent posts, so don't think it too old. My clock is in sync with an online time service so not sure how that could cause it either. Either way, Here is my function for this vote, still get the same error response.

$scope.vote = function() {
var wif = steem.auth.toWif('unipsycho', PRIVATE_POSTING_KEY, 'posting');
steem.broadcast.vote(PRIVATE_POSTING_KEY, 'unipsycho', 'countryinspired', 'steemit-photo-challenge-entry-1-reflections', 10000, function(err, result) {
console.log(err, result);
});
}

from steem-js.

bonustrack avatar bonustrack commented on August 23, 2024

Can you check on your console network when the vote is broadcasted if the "expiration" time is UTC?
image

from steem-js.

unipsycho avatar unipsycho commented on August 23, 2024

Looks like the expiration time is in UTC, yes, but the now going out is still before the expiration. I set my local clock back a couple minutes and tried in UTC as well, but the now (shown in the console) is still going out a couple minutes before the expiration for some reason.
image

from steem-js.

unipsycho avatar unipsycho commented on August 23, 2024

OK, so playing around more with this, I set to use a time server to auto sync my clock and timezone then I tried again, got a voting power error instead. I dropped the voting power and voila, the vote went through, so not sure why the clock is so critical to this, but its working with this, so thanks for the help guys in figuring this out, I hope it gives you a closer idea what went wrong as well. now I can get back to coding. haha

from steem-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.