EOSIO / eosjs

General purpose library for the EOSIO blockchain.
http://eosio.github.io/eosjs
MIT License
1.43k stars 463 forks source link

help, get error '{"code":500,"message":"Internal Service Error","error":{"code":3040006,"name":"tx_exp_too_far_exception","what":"Transaction Expiration Too Far","details":[]}}' #236

Closed grimraider closed 6 years ago

grimraider commented 6 years ago

'{"code":500,"message":"Internal Service Error","error":{"code":3040006,"name":"tx_exp_too_far_exception","what":"Transaction Expiration Too Far","details":[]}}'

I used eosjs to create newaccount. `eos = Eosjs(eosConfig); eos.transaction(tr => { tr.newaccount({ creator: myAccount, name: subAccount, owner: keyPair.publicKey, active: keyPair.publicKey })

tr.buyrambytes({
  payer: myAccount,
  receiver: subAccount,
  bytes: 8192
})

tr.delegatebw({
  from: myAccount,
  receiver: subAccount,
  stake_net_quantity: '10.0000 SYS',
  stake_cpu_quantity: '10.0000 SYS',
  transfer: 0
})

})`

And I got this error message. '{"code":500,"message":"Internal Service Error","error":{"code":3040006,"name":"tx_exp_too_far_exception","what":"Transaction Expiration Too Far","details":[]}}'

Can anyone help me?

grimraider commented 6 years ago

Sorry, it's my fault. I set the "expireInSeconds" value to 30000. It should be 30.