Consequent API calls failed
See original GitHub issueI’ve used some Python script from which I did API requests to Eclair node. I needed generating new invoices.
In every second consequent calls I got such error. After second call, if i tried to request node it returned expected result (with invoice) or error (if request is malformed).
2021-06-30 16:51:20,377 ERROR f.a.eclair.Boot - API call failed with cause=Substream Source(EntitySource) cannot be materialized more than oncejava.lang.IllegalStateException: Substream Source(EntitySource) cannot be materialized more than once
at akka.stream.impl.fusing.SubSource$$anon$13.createMaterializedTwiceException(StreamOfStreams.scala:828)
at akka.stream.impl.fusing.SubSource$$anon$13.<init>(StreamOfStreams.scala:799)
at akka.stream.impl.fusing.SubSource.createLogic(StreamOfStreams.scala:795)
at akka.stream.stage.GraphStage.createLogicAndMaterializedValue(GraphStage.scala:106)
at akka.stream.stage.GraphStageWithMaterializedValue.createLogicAndMaterializedValue(GraphStage.scala:50)
at akka.stream.impl.GraphStageIsland.materializeAtomic(PhasedFusingActorMaterializer.scala:699)
at akka.stream.impl.PhasedFusingActorMaterializer.materialize(PhasedFusingActorMaterializer.scala:498)
at akka.stream.impl.PhasedFusingActorMaterializer.materialize(PhasedFusingActorMaterializer.scala:448)
at akka.stream.impl.PhasedFusingActorMaterializer.materialize(PhasedFusingActorMaterializer.scala:440)
at akka.stream.scaladsl.RunnableGraph.run(Flow.scala:741)
at akka.stream.scaladsl.Source.runWith(Source.scala:118)
at akka.http.scaladsl.model.HttpEntity.toStrict(HttpEntity.scala:94)
at akka.http.scaladsl.model.HttpEntity.toStrict$(HttpEntity.scala:88)
at akka.http.scaladsl.model.HttpEntity$Default.toStrict(HttpEntity.scala:384)
at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$toStrictEntity$3(BasicDirectives.scala:400)
at akka.http.scaladsl.server.directives.BasicDirectives.$anonfun$textract$2(BasicDirectives.scala:161)
at akka.http.scaladsl.server.RouteConcatenation$RouteWithConcatenation.$anonfun$$tilde$2(RouteConcatenation.scala:47)
at akka.http.scaladsl.util.FastFuture$.strictTransform$1(FastFuture.scala:40)
at akka.http.scaladsl.util.FastFuture$.$anonfun$transformWith$3(FastFuture.scala:50)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:447)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:56)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:93)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:94)
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
First REST API POST request succeeds but subsequent calls ...
I get error saying "method not supported". Our UI application is not ready and so I am using Fiddler/Postman to make these calls......
Read more >Solved: All API calls failing after the 3rd consecutive ca...
My problem is that after I run the first three API calls, ALL subsequent calls fail with the message "The operation has timed...
Read more >What Are the Possible Causes for an API Calling Failure?
API calling failures may occur in three scenarios: within a VPC, between VPCs, and on a public network. Within a VPC: Check whether...
Read more >Unresolved API calls cause Electron to fail all subsequent tests
Unresolved API calls cause Electron to timeout each subsequent test in the suite. This happens when using the Electron GUI or the CLI....
Read more >Troubleshooting API request errors - AWS Documentation
If an API request exceeds the API request rate for its category, the request returns the RequestLimitExceeded error code. To prevent this error, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@t-bast report.
I’ve built custom Python script reproducing basically similar requests to Eclair node and set it up with various sleeping times between consequent requests. The shortest interval I’ve tested is
pause = 0.001 #second
and Eclair didn’t show any error related to this issue.Thus, I’m closing it. Thank you for your work.
@t-bast it works now. Thanks.