EOSIO / eosjs

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

Local Testnet EOSJS Initialization Error - Dawn 4.2 - 15.0.6 #266

Closed MessyComposer closed 6 years ago

MessyComposer commented 6 years ago

I recently updated to Dawn 4.2, which is working well through cleos.

How ever, when initializing EOSJS, I get the following error

[Error: [
      "Unrecognized type or struct block timestamp type.timestamp",
      "Missing block timestamp type in eosio global state.fields.last producer schedule update",
      "Missing block timestamp type in eosio global state.fields.last name close"
]]

Here is my main script

EOS = require('eosjs')

try{
   eos = EOS({
      keyProvider: '5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3',
      httpEndpoint: 'http://127.0.0.1:8888,
      chainId: '706a7ddd808de9fc2b8879904f3b392256c83104c1d544b38302cc07d9fca477'
   })
}
catch(e){
   console.log(e)
}

EOS Version Dawn 4.2 EOSJS Version 15.0.6

MessyComposer commented 6 years ago

Downgraded to EOSJS 13.1.0 fixed this

jcalfee commented 6 years ago

Probably a good thing we have a "Prior version matrix" table .. https://github.com/EOSIO/eosjs/blob/master/docs/prior_versions.md