Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consequent API calls failed

See original GitHub issue

I’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.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$
	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:closed
  • Created 2 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

engenegrcommented, Jul 24, 2021

@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.

engenegrcommented, Jul 22, 2021

@t-bast it works now. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found