Nethereum / Nethereum.Playground

Compile and run Nethereum snippets on the browser
MIT License
27 stars 17 forks source link

Playground Sample Errors #45

Closed vindicatorr closed 2 years ago

vindicatorr commented 2 years ago

Right off the bat, compiling/running the first sample produced an error. A second sample worked. Third sample failed. I'm just starting to explore crypto development and this, along with the flappybird error I also reported, is a negative mark on my experience with the project.

  1. Chain information: Query Ether account balance using Infura (FAIL)

    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 ().
    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () <0x455b7c0 + 0x0004a> in <1c0d0f2fbfa64217a3be42e4805334a5>:0 
    at Nethereum.JsonRpc.Client.RpcClient.SendAsync (Nethereum.JsonRpc.Client.RpcMessages.RpcRequestMessage request, System.String route) <0xc3c0858 + 0x001a0> in <1ce9aa914e8f4e05b743c0dd63848233>:0 
    --- End of inner exception stack trace ---
    at Nethereum.JsonRpc.Client.RpcClient.SendAsync (Nethereum.JsonRpc.Client.RpcMessages.RpcRequestMessage request, System.String route) <0xc3c0858 + 0x00378> in <1ce9aa914e8f4e05b743c0dd63848233>:0 
    at Nethereum.JsonRpc.Client.ClientBase.SendInnerRequestAsync[T] (Nethereum.JsonRpc.Client.RpcMessages.RpcRequestMessage reqMsg, System.String route) <0xc3b9440 + 0x000ea> in <42b0df5f16864771aff60c7fa511e472>:0 
    at Nethereum.JsonRpc.Client.ClientBase.SendInnerRequestAsync[T] (Nethereum.JsonRpc.Client.RpcRequest request, System.String route) <0xc3b8790 + 0x00118> in <42b0df5f16864771aff60c7fa511e472>:0 
    at Nethereum.JsonRpc.Client.ClientBase.SendRequestAsync[T] (Nethereum.JsonRpc.Client.RpcRequest request, System.String route) <0xc3b7f58 + 0x001f2> in <42b0df5f16864771aff60c7fa511e472>:0 
    at Program.Main (System.String[] args) <0xcdcbac8 + 0x00100> in <a38c9a1ce750422fa92b4875e1595abd>:0 
    at Nethereum.Playground.Components.PlaygroundEditor.PlaygroundEditorViewModel.CompileAndRunCsharp () <0xa17af90 + 0x001e4> in <0fb99110ea2f428a9e7d32b6ecf67e2e>:0 
    at Nethereum.Playground.Components.PlaygroundEditor.PlaygroundEditorViewModel.RunInternal () <0xa179e58 + 0x001d4> in <0fb99110ea2f428a9e7d32b6ecf67e2e>:0 
  2. Smart Contracts: Estimating Gas (SUCCESS)

  3. ENS: Registration Example (FAIL):

    (17,27): error CS0246: The type or namespace name 'Account' could not be found (are you missing a using directive or an assembly reference?)
    (18,38): error CS1503: Argument 2: cannot convert from 'string' to 'Nethereum.JsonRpc.Client.IClient'
juanfranblanco commented 2 years ago

You need to change the InfuraId to your own, somebody has stolen that one.

juanfranblanco commented 2 years ago

@vindicatorr this should be ok now.