mnetship / ratsio

NATS & NATS Streaming Server client library for Rust
MIT License
50 stars 22 forks source link

Generic Error #22

Closed Daelon02 closed 3 years ago

Daelon02 commented 3 years ago

Hi, when i trying connect to nats-streaming server, I have this error, I trying use https://github.com/mnetship/ratsio/blob/master/examples/stan_subscribe.rs

Usage: /home/dekstop/{something/}target/release/message-broker Error: GenericError("Invalid input")

awesomike commented 3 years ago

Hi, Can you show me how you tried to run the example? What did you type on the cmd line?

Kind Regards

Daelon02 commented 3 years ago

Hi, Can you show me how you tried to run the example? What did you type on the cmd line?

Kind Regards

I added ratsio on Cargo.toml and cargo run --release

awesomike commented 3 years ago

What happens if you run. cargo run --example stan_subscribe foo

and cargo run --example stan_publish foo "hi there" on another console?

Please make sure that you have Nats streaming server running on your local machine.

Daelon02 commented 3 years ago

What happens if you run. cargo run --example stan_subscribe foo

and cargo run --example stan_publish foo "hi there" on another console?

Please make sure that you have Nats streaming server running on your local machine.

Yep, sorry, all work)