hashgraph / did-sdk-java

Support for the Hedera Hashgraph DID Method and Verifiable Credentials on the Hedera Java SDK
Apache License 2.0
29 stars 17 forks source link

ERROR [build 4/4] RUN ./gradlew --no-daemon assemble #11

Open ShivaSunny9 opened 3 years ago

ShivaSunny9 commented 3 years ago

Please ask questions you have in our Discord group first. You can also search GitHub to see if the issue has been reported already.

Otherwise, please feel free to ask your question here.

My docker is running but I can able to run the project getting an error ERROR [build 4/4] RUN ./gradlew --no-daemon assemble I even asked about this on their discord, but dint got any answer.

I have followed this video https://www.youtube.com/watch?v=Zitoa1NNMIs&t=179s 167

gregscullard commented 3 years ago

Hi I have just tried it after and fresh pull from gitHub and it worked ok.

  1. did you copy the .env.sample file and edit ? There is an error about /usr/bin/env which could be related although not 100% sure
  2. it looks like you're running on windows, I don't think we've tested this on windows. I will try to set some time aside to run it under windows after you've confirmed (1).

I assume you've not changed the Dockerfile or anything else ?

ShivaSunny9 commented 3 years ago

Thanks for the reply.

  1. I am using windows, please check at your side is it running on windows.
  2. No, I dint changed anything on docker file.
  3. I have copied the same env file and edited accordingly
OPERATOR_ID=0.0.xxxx
OPERATOR_KEY=302....
# testnet, previewnet, mainnet
NETWORK=testnet
# hedera, kabuto (note kabuto not available on previewnet)
MIRROR_PROVIDER=hedera

and when I am running the cmd ./gradlew :appnet-api-server:run I am getting this error 168

gregscullard commented 3 years ago

ok, it looks like the example folder is missing its own .env file. -There is one for the SDK -Another for the example itself.

The line (271) referred to in the error message refers to a line of code that attempts to get the OPERATOR_ID from .env in example.

See here: https://github.com/hashgraph/did-sdk-java/tree/master/examples/appnet-api-server

ShivaSunny9 commented 3 years ago

I have tried with Linux it is working fine, but in the windows, I am getting the same error after updating .env. Please, check why it is not working on windows.

168