Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The current provider doesn't support subscriptions: MetamaskInpageProvider (events) #2601

Closed
coryl opened this issue Nov 17, 2017 · 3 comments

Comments

@coryl
Copy link

coryl commented Nov 17, 2017

I'm trying to listen to events with web3:

  incrementEvent = existingContract.events.allEvents(function(error, event){
                  if (error) console.log(error);
                  console.log("event is: " + event);
                })

Console logs:

Error: The current provider doesn't support subscriptions: MetamaskInpageProvider
    at Subscription.subscribe (bundle.js:45443)
    at Contract._on (bundle.js:48777)
    at (index):48
    at tryCatcher (bundle.js:44235)
    at Promise._settlePromiseFromHandler (bundle.js:42267)
    at Promise._settlePromise (bundle.js:42325)
    at Promise._settlePromise0 (bundle.js:42370)
    at Promise._settlePromises (bundle.js:42453)
    at bundle.js:39334
    at MutationObserver.<anonymous> (bundle.js:43502)
(index):50 event is: null

Any ideas? Does metamask not support events? Thanks

@danfinlay
Copy link
Contributor

web3 1.0 requires a websocket provider, which we don't have yet.

Closing as a duplicate of #2350.

@elie222
Copy link

elie222 commented Mar 6, 2018

Any idea when this will be supported?

@danfinlay
Copy link
Contributor

No, but we know it's very desired. Just balancing important issues, sorry. Follow issue #2350, not this one, please.

@MetaMask MetaMask locked and limited conversation to collaborators Mar 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants