Closed jayeshpk1 closed 2 weeks ago
Hey, could you provide more information about:
1) how did you started the fluvio cluster? 2) how did you run the above code? Maybe using docker? 3) can you access the fluvio cluster from the CLI? 'fluvio topic list' works?
The client is looking for a profile file to get information about the cluster. You should have the following file on the system where the client is running:
ls ~/.fluvio/config
can you confirm that the file is available?
With the profile in the right place, the code works:
% cargo run
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s
Running `target/debug/test-client`
Hello World! - Time is Tue, 4 Jun 2024 17:20:30 -0700
After moving the profile:
mv ~/.fluvio ~/.fluvio2
I get the following error:
% cargo run
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s
Running `target/debug/test-client`
thread 'main' panicked at src/main.rs:20:41:
called `Result::unwrap()` on an `Err` value: Config error: Config has no active profile
Caused by:
Config has no active profile
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Thank you so much. I was running cargo run from windows command line where configuration directory is missing.
You can copy/paste it manually.
@jayeshpk1, feel free to close if you think this issue has been resolved.
What happened Getting this error called
Result::unwrap()
on anErr
value: Config error: Config has no active profileExpected behavior Should work
Describe the setup
How to reproduce it (as minimally and precisely as possible) Steps to reproduce the behavior:
Environment (please complete the following information):
Code