Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Error: Synchronous requests are not supported. #15

Closed
cgewecke opened this issue Oct 13, 2017 · 2 comments
Closed

Error: Synchronous requests are not supported. #15

cgewecke opened this issue Oct 13, 2017 · 2 comments
Labels

Comments

@cgewecke
Copy link
Owner

cgewecke commented Oct 13, 2017

Seen at Neufund, when using the provider in truffle.js. . . the pattern looks like this:

    inprocess: {
      network_id: "*",
      provider: TestRPC.provider({
        accounts: Array(10).fill({ balance: "12300000000000000000000000" })
      })
    },

The errors then come from our use of sync web3 methods like web3.eth.getBlock('latest)

@cgewecke cgewecke added the bug label Oct 13, 2017
@cgewecke
Copy link
Owner Author

Finally discovered what this is about. . . testrpc must be run in a separate process to handle sync requests. Any tool that uses an in process provider forfeits the ability call web3 0.x sync methods.

@cgewecke
Copy link
Owner Author

Not that this isn't a problem, but not really a bug per se.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant