OT-Hub / OTHub

OT Hub is a community-made project for live insights into the OriginTrail Decentralized Network.
https://othub.origin-trail.network/
MIT License
5 stars 2 forks source link

LoadIdentities too many requests http response #19

Closed lukeskinner closed 4 years ago

lukeskinner commented 4 years ago

Aug 21 22:28:11 OTHub-server othub-backend[7190]: Nethereum.JsonRpc.Client.RpcClientUnknownException: Error occurred when trying to send rpc requests(s) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 (Too Many Requests). Aug 21 22:28:11 OTHub-server othub-backend[7190]: at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() Aug 21 22:28:11 OTHub-server othub-backend[7190]: at Nethereum.JsonRpc.Client.RpcClient.SendAsync(RpcRequestMessage request, String route) Aug 21 22:28:11 OTHub-server othub-backend[7190]: --- End of inner exception stack trace --- Aug 21 22:28:11 OTHub-server othub-backend[7190]: at Nethereum.JsonRpc.Client.RpcClient.SendAsync(RpcRequestMessage request, String route) Aug 21 22:28:11 OTHub-server othub-backend[7190]: at Nethereum.JsonRpc.Client.ClientBase.SendInnerRequestAsync[T](RpcRequestMessage reqMsg, String route) Aug 21 22:28:11 OTHub-server othub-backend[7190]: at Nethereum.JsonRpc.Client.ClientBase.SendInnerRequestAsync[T](RpcRequest request, String route) Aug 21 22:28:11 OTHub-server othub-backend[7190]: at Nethereum.JsonRpc.Client.RequestInterceptor.InterceptSendRequestAsync[T](Func`3 interceptedSendRequestAsync, RpcRequest request, String route) Aug 21 22:28:11 OTHub-server othub-backend[7190]: at Nethereum.JsonRpc.Client.ClientBase.SendRequestAsync[T](RpcRequest request, String route) Aug 21 22:28:11 OTHub-server othub-backend[7190]: at Nethereum.Contracts.FunctionBase.CallAsync[TReturn](TReturn functionOuput, CallInput callInput) Aug 21 22:28:11 OTHub-server othub-backend[7190]: at OTHub.BackendSync.Tasks.LoadIdentitiesTask.Execute(Source source) in C:\Users\luke.skinner\Source\repos\OTHubApi\OTHub.BackendSync\Tasks\LoadIdentitiesTask.cs:line 210

lukeskinner commented 4 years ago

This looks to be any API call I make is too many requests. Based on their documentation it's probably shared usage across other projects not just OT Hub (at a guess).

lukeskinner commented 4 years ago

OT Hub looks to be using under 15K requests a day on mainnet (well under the 100K total/per day).

lukeskinner commented 4 years ago

image

lukeskinner commented 4 years ago

I think I will keep this on my personal Infura account for the time being. This can always be moved to a different infura account on a shared email others have access to.

lukeskinner commented 4 years ago

This is now happening on the testnet... might move to my own infura account again.

lukeskinner commented 4 years ago

Moved testnet to my own infura account.