hashgraph / did-sdk-java Goto Github PK
View Code? Open in Web Editor NEWSupport for the Hedera Hashgraph DID Method and Verifiable Credentials on the Hedera Java SDK
License: Apache License 2.0
Support for the Hedera Hashgraph DID Method and Verifiable Credentials on the Hedera Java SDK
License: Apache License 2.0
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.
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.
Can we add the contributing guide from the Mirror Nodes or something to outline how to help out?
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
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'
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:
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)
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 😅
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-----------------------------
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)`
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.
Detailed Description
When using Hedera -e2e flow postman DID - SUBMIT flow.
API /did-submit respond with 202 Accepted, however, DID message do not get recorded to testnet topic
for e.g I submitted multiple DID Documents to the testnet topic https://explorer.kabuto.sh/testnet/id/0.0.554616, however, it never shows up.
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:
Problem
The did SDK isn't available on maven for inclusion in projects.
Solution
Publish to maven
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.