Comments (6)
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.
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.
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.
Can you check on your console network when the vote is broadcasted if the "expiration" time is UTC?
from steem-js.
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.
from steem-js.
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)
- bip39 compatibility
- steem-js cannot be imported into typescript project but can with js project... HOT 1
- SMT HF support
- Update tests to use a testing authority
- Angular 8.2.13 Build : An unhandled exception occurred: Unexpected token: punc ()) HOT 1
- Add smt_setup_ico_tier_operation to steem-js
- Are the docs out of date? HOT 4
- [HF 23] transfer_to_vesting and other ops serialization
- get address from privateKey HOT 4
- claim_account and create_claimed_account need a dedicated API
- Get Version of the Libary used
- transfer STEEM failed by steem-js HOT 1
- Error to fetch content HOT 1
- steem.broadcast.transfer private message not working HOT 3
- When call steem.api.getDynamicGlobalProperties() HOT 2
- why does a vital part always need to be missing from the docs...
- Proper Documentation HOT 1
- Update webpack.config.js for webpack versions > 5.0.0
- Update Webpack Example to Webpack Version greater than 5.x.x
- ERROR: Permission to steemit/steem-js.git denied HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steem-js.