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

ManipulateState action not working #2081

Closed
U-lis opened this issue Jun 15, 2023 · 0 comments · Fixed by #2157
Closed

ManipulateState action not working #2081

U-lis opened this issue Jun 15, 2023 · 0 comments · Fixed by #2157
Labels
bug Something isn't working

Comments

@U-lis
Copy link
Contributor

U-lis commented Jun 15, 2023

The DexEx action ManipulateState action is not working in local headless.

Reproduce

  • run local headless with following command:
    dotnet run -c DevEx --project NineChronicles.Headless.Executable -C appsettings.local.json
  • Connect to local headless using Unity Editor
  • Execute ManipulateState action in Tools > Lib9c > StateViewer window
  • Check log in local headless console

Screenshots

  1. DevEx project is imported: I can see CreateOrReplaceAvatar action in my GQL docs
    Screenshot from 2023-06-15 10-15-03

  2. ManipulateState action is not working. Full Log here:

fail: Grpc.AspNetCore.Server.ServerCallHandler[6]
      Error when executing service method 'PutTransaction'.
      Libplanet.Action.InvalidActionException: Failed to instantiate an action from Bencodex.Types.Dictionary {
        "type_id": "manipulate_state",
        "values": {
          "bl": [
            [
              b"\x5c\xca\x79\x79\xbe\x74\x51\x4e\x69\xbf\xd7\x54\x31\x5a\x92\x3c\xa9\x57\x52\x49",
              [
                {
                  "decimalPlaces": b"\x12",
                  "minters": null,
                  "ticker": "CRYSTAL",
                },
                9999950000000000000000000,
              ],
            ],
          ],
          "id": b"\xd2\xb2\xae\x38\x47\xd9\xd0\x4d\x83\xa4\xac\x83\x78\xe8\x00\x5f",
          "sl": [],
        },
      } for index 0
       ---> System.InvalidOperationException: Failed to instantiate an action from Bencodex.Types.Dictionary {
        "type_id": "manipulate_state",
        "values": {
          "bl": [
            [
              b"\x5c\xca\x79\x79\xbe\x74\x51\x4e\x69\xbf\xd7\x54\x31\x5a\x92\x3c\xa9\x57\x52\x49",
              [
                {
                  "decimalPlaces": b"\x12",
                  "minters": null,
                  "ticker": "CRYSTAL",
                },
                9999950000000000000000000,
              ],
            ],
          ],
          "id": b"\xd2\xb2\xae\x38\x47\xd9\xd0\x4d\x83\xa4\xac\x83\x78\xe8\x00\x5f",
          "sl": [],
        },
      } for index 0
         at Libplanet.Action.Loader.TypedActionLoader.LoadAction(Int64 index, IValue value) in /home/ulismoon/Documents/planetarium/NineChronicles.Headless/Lib9c/.Libplanet/Libplanet/Action/Loader/TypedActionLoader.cs:line 121
         --- End of inner exception stack trace ---
         at Libplanet.Action.Loader.TypedActionLoader.LoadAction(Int64 index, IValue value) in /home/ulismoon/Documents/planetarium/NineChronicles.Headless/Lib9c/.Libplanet/Libplanet/Action/Loader/TypedActionLoader.cs:line 129
         at Nekoyume.Action.Loader.NCActionLoader.LoadAction(Int64 index, IValue value) in /home/ulismoon/Documents/planetarium/NineChronicles.Headless/Lib9c/Lib9c/Action/Loader/NCActionLoader.cs:line 25
         at NineChronicles.Headless.NCActionUtils.ToAction(IValue plainValue) in /home/ulismoon/Documents/planetarium/NineChronicles.Headless/NineChronicles.Headless/NCActionUtils.cs:line 13
         at NineChronicles.Headless.Middleware.GrpcCaptureMiddleware.UnaryServerHandler[TRequest,TResponse](TRequest request, ServerCallContext context, UnaryServerMethod`2 continuation) in /home/ulismoon/Documents/planetarium/NineChronicles.Headless/NineChronicles.Headless/Middleware/GrpcCaptureMiddleware.cs:line 39
         at Grpc.Shared.Server.InterceptorPipelineBuilder`2.<>c__DisplayClass5_0.<<UnaryPipeline>b__1>d.MoveNext()
      --- End of stack trace from previous location ---
         at Grpc.Shared.Server.InterceptorPipelineBuilder`2.<>c__DisplayClass5_0.<<UnaryPipeline>b__1>d.MoveNext()
      --- End of stack trace from previous location ---
         at Grpc.AspNetCore.Server.Internal.CallHandlers.UnaryServerCallHandler`3.HandleCallAsyncCore(HttpContext httpContext, HttpContextServerCallContext serverCallContext)
         at Grpc.AspNetCore.Server.Internal.CallHandlers.ServerCallHandlerBase`3.<HandleCallAsync>g__AwaitHandleCall|8_0(HttpContextServerCallContext serverCallContext, Method`2 method, Task handleCall)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant