question-mark
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.

Not all operations show up in the operations stream

See original GitHub issue

I am noticing a weird behavior where not all payment operations are showing up in the operations stream. I am creating a stream as such:

const StellarSdk = require('stellar-sdk');
const server = new StellarSdk.Server('https://horizon.stellar.org');
server.operations()
  .cursor('now')
  .stream({
    onmessage: (msg) => console.log(msg)
  });

I noticed that in the beginning it gets the payment transaction I make in Prod but over time some payment transactions go missing. Is the stream reliable of is there a bug in the code?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ankurpcommented, Oct 4, 2018

@bartekn I am looking for a stream as I am building an application that needs to get all of the operations in the stream and go through them. The stream should not slow down and should be as quick as possible. What you shared is a way to get last n number of operation which may miss out of something.

0reactions
hitwillcommented, Dec 28, 2018

@bartekn I am looking for a stream as I am building an application that needs to get all of the operations in the stream and go through them. The stream should not slow down and should be as quick as possible. What you shared is a way to get last n number of operation which may miss out of something.

Did you end up with a solution to this? Having the same problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java Stream Terminal Operations Examples - CodeJava.net
The allMatch()operation answers the question: Do all elements in the stream meet this condition? It returns true if and only if all elements ......
Read more >
Understanding Java 8 Streams Operations | Intermediate and ...
Tutorial explains Stream operations basics, intermediate and terminal operations in Java 8 Streams with examples. It explains lazy execution ...
Read more >
Java 8 Stream Intermediate And Terminal Operations
Java 8 Stream has many operations which can be pipe lined together to get desired ... Terminal operations can not be chained together....
Read more >
Package java.util.stream - Oracle Help Center
An operation on a stream produces a result, but does not modify its source. ... All streams operations can execute either in serial...
Read more >
How to combine two java8 stream operations - one terminal ...
Stream operations are divided into intermediate (Stream-producing) operations and terminal (value- or side-effect-producing) operations.
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 Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found