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

Retrieving Past Events from the Legacy Marketplace throws error #641

Closed
1 of 2 tasks
neocybereth opened this issue Nov 6, 2018 · 3 comments
Closed
1 of 2 tasks
Assignees

Comments

@neocybereth
Copy link

neocybereth commented Nov 6, 2018

🎉 Description

I'm looking to use the Legacy Marketplace contract to backfill AuctionSuccessful data on my website
However when I change the contract to the current marketplace abi and proxy address it works just fine. Any ideas what the issue could be?

  • 🐛 This is a bug report.
  • 📈 This is a feature request.

📝 Details

I'm looking to use the Legacy Marketplace contract to backfill AuctionSuccessful data on my website with this code:

const backfill = legacyMarketContract
  .getPastEvents("AuctionSuccessful", {
    fromBlock: 5284556,
    toBlock: "latest"
  }) 

(this uses the legacy and ABI and legacy address)
Everytime I keep hitting this error:
Error: CONNECTION ERROR: Couldn't connect to node on WS.

However when I change the contract to the current marketplace abi and proxy address it works just fine. Any ideas what the issue could be?

- Connect to web3
- Provide legacy Abi and legacy contract address to instantiate a contract
- call get past events on contract with the event of AuctionSuccessful
@nachomazzara nachomazzara self-assigned this Nov 6, 2018
@nachomazzara
Copy link
Contributor

Hey!

  • Which provider are you using?
  • Did you try to use bigger fromBlock? sometimes you could get a timeout if there is a lot of events to return (mainnet)

Thanks

@neocybereth
Copy link
Author

neocybereth commented Nov 6, 2018

Hey man!

  • I'm using Infura
  • Using a bigger fromBlock solved the problem!!! Thank you @nachomazzara !

@nachomazzara
Copy link
Contributor

As you asked here. Is it good to close this one?

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

No branches or pull requests

2 participants