Code Monkey home page Code Monkey logo

did-sdk-java's People

Contributors

cooper-kunz avatar emurova avatar gregscullard avatar mehcode avatar paulmadsenhed avatar pjn82 avatar triggernz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

did-sdk-java's Issues

Mirror listener retry

Problem
The mirror listener doesn't appear to be setup to retry in the event of a loss of communication with the Mirror Node

Solution
If the listener is subscribing, it should handle an error() event and re-subscribe from the consensus timestamp of the last message (+1 nano) it received. This will ensure no notifications are missed.

Alternatives
There are no alternatives that would ensure no loss of data.

Mirror listener subscribes from "now"

Problem
The mirror listener subscribes from the current date/time, this could result in any messages sent while the listener was down to be missed. This is ok for demonstration purposes, but not sufficient for production use.

Solution
Subscription should start from the consensus timestamp (+1 nano) of the last notification.

Alternatives
There are no alternatives that would ensure no loss of notifications.

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

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

Not able to find the 'identity' jar

Cannot find the identity jar on maven repository

I tried to build via gradle but it is not finding implementation group: 'com.hedera.hashgraph', name: 'identity', version: '1.1.4'

Starting example appnet throws an error

Problem
Hi, I am trying to run the example from new identity sdk did-sdk-java.
When I am running 'gradle :appnet-api-server:run', I am getting the following error,

io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found: com.hedera.mirror.api.proto.ConsensusService/subscribeTopic

Is this a known issue?

Environment:

  • Java: OpenJDK 11
  • OS: Mac OSX v10.14

Additional Context
Complete error log as follows,

2020-06-07 16:22:25:971 ERROR AppnetServer - Error while processing message from VC topic:
io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found: com.hedera.mirror.api.proto.ConsensusService/subscribeTopic
        at io.grpc.Status.asRuntimeException(Status.java:533)
        at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:449)
        at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:426)
        at io.grpc.internal.ClientCallImpl.access$500(ClientCallImpl.java:66)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:689)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$900(ClientCallImpl.java:577)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:751)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:740)
        at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:830)

readme refers to identity-sdk instead of did-sdk-java

The current readme still refers to identity-sdk rather than the updated name of did-sdk-java

e.g. cd identity-sdk, return to the identity-sdk folder

note: this should have an enhancement label instead of bug, I just clicked the first template available 😅

hedera testnet is unavailable, throwing 503. how to check status of hedera testnet?

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.
`2021-11-16 14:51:30:999 INFO AppnetServer - Starting appnet API server...
2021-11-16 14:51:31:001 INFO AppnetServer - Initializing identity network...
2021-11-16 14:51:31:766 INFO AppnetServer - Setting up new identity network...
2021-11-16 14:51:36:580 ERROR Executable - caught error, retrying
node=0.0.6
attempt=1
{}
io.grpc.StatusRuntimeException: UNAVAILABLE: HTTP status code 503
invalid content-type: text/html
headers: Metadata(:status=503,content-length=107,cache-control=no-cache,content-type=text/html)
DATA-----------------------------

503 Service Unavailable

No server is available to handle this request.

DATA-----------------------------

at io.grpc.Status.asRuntimeException(Status.java:534)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:533)
at io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:464)
at io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:428)
at io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:461)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:553)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:68)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:739)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:718)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)`

did-sdk-java import question

When I use Gradle importing did-sdk-java by “implementation 'com.hedera.hashgraph:did-sdk-java:0.0.1'”>
Why can't I use this SDK, and I can't find the did-sdk-java:0.0.1 source code in my dependecies.

NPathComplexity PMD rule violation

Detailed Description
PMD rule violations when running gradle build for did-sdk-java.

Actual Behavior
Steps to reproduce the behavior:
Run gradle build

Expected Behavior
No PMD rule violations.

Environment:

  • Java: corretto-11.0.13
  • OS: macOS Big Sur
  • Version: 11.6
  • IDE: IntelliJ IDEA 2021.3 (Community Edition)

Additional Context
Screen Shot 2021-12-22 at 2 02 07 pm

problem running examples/appnet-api-server

Trying to run the example on windows 10 machine.

Not able to start the AppnetServer, failing with below error :

2020-06-07 18:13:11:040 INFO AppnetServer - Setting up new identity network...
2020-06-07 18:13:12:518 ERROR AppnetServer - Error during startup:
com.hedera.hashgraph.sdk.HederaPrecheckStatusException: transaction [email protected] failed precheck with status TRANSACTION_EXPIRED
at com.hedera.hashgraph.sdk.HederaPrecheckStatusException.throwIfExceptional(HederaPrecheckStatusException.java:23)
at com.hedera.hashgraph.sdk.Transaction.mapResponse(Transaction.java:272)
at com.hedera.hashgraph.sdk.Transaction.mapResponse(Transaction.java:33)
at com.hedera.hashgraph.sdk.HederaCall.lambda$execute$0(HederaCall.java:55)
at com.hedera.hashgraph.sdk.Backoff.tryWhile(Backoff.java:37)
at com.hedera.hashgraph.sdk.HederaCall.execute(HederaCall.java:58)
at com.hedera.hashgraph.sdk.Transaction.execute(Transaction.java:132)
at com.hedera.hashgraph.sdk.Transaction.execute(Transaction.java:33)
at com.hedera.hashgraph.sdk.HederaCall.execute(HederaCall.java:44)
at com.hedera.hashgraph.identity.hcs.HcsIdentityNetworkBuilder.execute(HcsIdentityNetworkBuilder.java:47)
at com.hedera.hashgraph.identity.hcs.example.appnet.AppnetServer.setupIdentityNetwork(AppnetServer.java:347)
at com.hedera.hashgraph.identity.hcs.example.appnet.AppnetServer.initHederaIdentityNetwork(AppnetServer.java:296)
at com.hedera.hashgraph.identity.hcs.example.appnet.AppnetServer.startUp(AppnetServer.java:83)
at com.hedera.hashgraph.identity.hcs.example.appnet.AppnetServer.main(AppnetServer.java:68)
2020-06-07 18:13:12:524 INFO AppnetServer - Shutting down appnet API server...
2020-06-07 18:13:12:535 ERROR AppnetServer - Error during shutdown:
java.util.concurrent.TimeoutException: Timed out waiting for node channel to shutdown: 0.0.5 :: 2.testnet.hedera.com:50211
at com.hedera.hashgraph.sdk.Node.awaitChannelTermination(Node.java:55)
at com.hedera.hashgraph.sdk.Client.close(Client.java:450)
at com.hedera.hashgraph.sdk.Client.close(Client.java:418)
at com.hedera.hashgraph.identity.hcs.example.appnet.AppnetServer.shutDown(AppnetServer.java:247)
at com.hedera.hashgraph.identity.hcs.example.appnet.AppnetServer.access$000(AppnetServer.java:41)
at com.hedera.hashgraph.identity.hcs.example.appnet.AppnetServer$1.run(AppnetServer.java:78)
2020-06-07 18:13:12:536 INFO AppnetServer - Appnet API server stopped.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.