Skip to content
Discussions/App Development/GRPCIOBadStatusCodeForum ↗

GRPCIOBadStatusCode

App Development10 posts572 views14 likesLast activity May 2020
NI
Nishchal_VashishtOP
May 2020

why i am getting this error
GRPCIOBadStatusCode StatusUnimplemented (StatusDetails {unStatusDetails = "Method not found: com.daml.ledger.api.v1.admin.PartyManagementService/ListKnownParties"})

while using following command
daml ledger allocate-parties PARTY --host localhost --port 9000
in daml-on-sawtooth example ?

BE
bernhard
May 2020

The daml-on-sawtooth repo currently pulls in DAML components from DAML SDK 0.13.41 via its pom.xml. There have been some minor changes to the API in the meantime which would cause such errors. Please use DAML SDK 0.13.41 until the sawtooth example has been updated. You can do so by running daml install 0.13.41 and/or setting the SDK version to 0.13.41 in your daml.yaml file.

NI
Nishchal_Vashisht
May 2020

Thanks @bernhard even after using SDK 0.13.41 still i am getting following error
GRPCIOBadStatusCode StatusUnavailable (StatusDetails {unStatusDetails = “Connection reset by peer”})

SA
SamirTalwar
May 2020

Hi Nishchal! Can you confirm you’re running the Sandbox (and not the Navigator) on port 9000? The default port for Sandbox is 6865.

NI
Nishchal_Vashisht
May 2020

I didn’t understand where do I need to start sandbox.
I am following the flow as described in daml-on-sawtooth Readme.md

  1. First, I build the file as describe in build.md
  2. then after I am running daml-on-sawtooth using ./docker/run.sh start . Now sawtooth [sawtooth-daml-rpc] is running over port 9000.
  3. After that I am trying to allocate party using daml ledger allocate-parties PARTY --host localhost --port 9000 Here I am getting the following error

GRPCIOBadStatusCode StatusUnavailable (StatusDetails {unStatusDetails = “Connection reset by peer”})

CO
cocreature
May 2020

You don’t have to start Sandbox. I think @SamirTalwar didn’t spot that you are trying to use sawtooth. I just ran through the example and it sems to work for me. What output do you get from the ./docker/run.sh start step? And how are you selecting the SDK version? If you want to make sure you are using the right version try DAML_SDK_VERSION=0.13.41 daml ledger allocate-party --host localhost --port 9000 myparty

NI
Nishchal_Vashisht
May 2020

Thanks it works .

CO
cocreature
May 2020

Could you explain what exactly you changed?

NI
Nishchal_Vashisht
May 2020

I have to explicitly provide sdk version while allocating parties which I was not doing before and i remove all the docker container and rebuild the file .

CO
cocreature
May 2020

Cool, glad you got it working now!

← Back to Discussions