[bisq-network/bisq] Add API 'gettrades' method (PR #5976)
Christoph Atteneder
notifications at github.com
Tue Jan 25 11:54:27 CET 2022
When trying to call `./bisq-cli --password=xyz gettrades --category=failed`
It failed with:
```
Jän.-25 11:51:43.164 [BisqDaemonMain] ERROR b.d.grpc.GrpcTradesService: java.lang.IllegalStateException: could not get role because no contract was found for trade 'lzmr2mc'
at bisq.core.trade.bisq_v1.TradeUtil.getRole(TradeUtil.java:196)
at bisq.core.api.CoreTradesService.getTradeRole(CoreTradesService.java:275)
at bisq.core.api.CoreApi.getTradeRole(CoreApi.java:343)
at bisq.daemon.grpc.GrpcTradesService.lambda$buildGetTradesReply$7(GrpcTradesService.java:309)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at bisq.daemon.grpc.GrpcTradesService.buildGetTradesReply(GrpcTradesService.java:322)
at bisq.daemon.grpc.GrpcTradesService.getTrades(GrpcTradesService.java:150)
at bisq.proto.grpc.TradesGrpc$MethodHandlers.invoke(TradesGrpc.java:761)
at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:182)
at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:340)
at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:866)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
```
I do know that I have quite a couple of nasty failed trades in my list, but I think this should not prevent this request to execute successfully.
--
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5976#issuecomment-1021058059
You are receiving this because you are subscribed to this thread.
Message ID: <bisq-network/bisq/pull/5976/c1021058059 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20220125/c3eb6d0b/attachment-0001.htm>
More information about the bisq-github
mailing list