Johnson Jardocs
Johnson Jardocs

Reputation: 1

Can't connect to ganache

the code is in the picture below

1

ERROR:

raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '<web3.main.Web3 object at 0x00000292C9A8C6A0>': No scheme supplied. Perhaps you meant http://<web3.main.Web3 object at 0x00000292C9A8C6A0>?

Upvotes: 0

Views: 472

Answers (1)

paulyang0125
paulyang0125

Reputation: 337

Missing schema means you haven't supplied the http:// or https:// in your w3 URL variable.

  1. try to print w3 to see if it complies with the schema needs.

  2. try to update w3

original:

w3 = Web3(HTTPProvider('HTTP://0.0.0.0:7545'))

update:

w3 = Web3(HTTPProvider('http://0.0.0.0:7545'))

Upvotes: 0

Related Questions