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 occurred when trying to send rpc requests(s) #991

Open
Zephyris94 opened this issue Nov 25, 2023 · 0 comments
Open

Error occurred when trying to send rpc requests(s) #991

Zephyris94 opened this issue Nov 25, 2023 · 0 comments

Comments

@Zephyris94
Copy link

Hi,
I am trying to get some blocks using ankr.
While I had some successful calls to ankr net I get an error "Error occurred when trying to send rpc requests(s)"
while trying to get data from block 33796076 to block 33799076
I tried to google the issue and add
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
like it was suggested in another issues on github, but it did not help. I also saw that discussions are usually around Infura but I need ankr for bnb connection
I get the event like this:
var web3 = new Web3(new TimeSpan(1, 0, 0), blockChainAddress);
var transferEvent = web3.Eth.GetEvent(tokenAddress);
I then create a filter input and run it like that
var events = await transferEvent.GetAllChanges(filterInput);
Maybe you could suggest what goes wrong? The weirdes thing is that I initally picked another block and started go adding 3k per cycle, and when I got an exception on 4th cycle I thought that I faced some free plan limitations, but it appeared that issues are with these blocks for instance.
There is no info I can get from this error except 500 internal server error. Can it be THEIR problem on the ankr side?

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

1 participant