GithubHelp home page GithubHelp logo

Comments (7)

ripienaar avatar ripienaar commented on July 18, 2024 2

Yes, fixed here b213da1 and not yet released.

from natscli.

ripienaar avatar ripienaar commented on July 18, 2024

Thanks for the report,

Do you mind adding --trace to the command arguments?

Here you can see picking a domain does result in the API trying to access the stream in the domain:

$ nats sub --stream X --js-domain foo --trace
09:40:09 >>> $JS.foo.API.STREAM.INFO.X

this indicates its accessing the domain correctly

from natscli.

Zambito1 avatar Zambito1 commented on July 18, 2024
nats --js-domain A s add foo
nats --js-domain B s add bar

nats pub foo.foo foo
nats pub bar.bar bar

nats --js-domain B sub --stream foo --trace # Note, foo is on domain A
<<< Reply Subject: $JS.ACK.foo.OKmk1lpA.1.1.1.1718197970030690510.0
[#1] Received JetStream message: stream: foo seq 1 / subject: foo.foo / time: 2024-06-12T09:12:50-04:00
foo

nats --js-domain B sub --stream bar --trace
nats: error: nats: stream not found

nats --js-domain B s ls # Shows bar with 1 message

from natscli.

ripienaar avatar ripienaar commented on July 18, 2024

The —trace flag is only useful if you show the new output like in my example.

from natscli.

Zambito1 avatar Zambito1 commented on July 18, 2024

Sorry, I'm not sure what you mean. Are you referring to the output of the sub --stream bar --trace? If so, I copied the output verbatim:
image

from natscli.

Zambito1 avatar Zambito1 commented on July 18, 2024

Same with the sub --stream foo --trace:
image

from natscli.

ripienaar avatar ripienaar commented on July 18, 2024

Ok perhaps the trace behaviour are in main only. To me this seems fixed for the next release.

from natscli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.