Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuixStreamingClient issue when token is specified #38

Open
peter-quix opened this issue Feb 21, 2024 · 0 comments
Open

QuixStreamingClient issue when token is specified #38

peter-quix opened this issue Feb 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@peter-quix
Copy link
Contributor

peter-quix commented Feb 21, 2024

Tell us about the bug
When using token in QuixStreamingClient with a token and Quix__Workspace__Id is specified as environment variable, the client freaks out if token isn't valid for the workspace id. This should be also an optional parameter to pass and not use the environment variable when the token is passed in. This is because these tokens are used mostly when the intent is to interact with a different workspace than the current the application is deployed into. This feature was introduced in https://github.com/quixio/quix-streams-dotnet/releases/tag/v0.6.2

What did you expect to see?
It not failing with exception saying token is for Y workspace but env is configured for X

What version of the library are you using?
0.6.3

Workaround?

var prev = Environment.GetEnvironmentVariable("Quix__Workspace__Id");
var newVal = Environment.GetEnvironmentVariable("source__workspace__id");
Environment.SetEnvironmentVariable("Quix__Workspace__Id", newVal);
// do thing with QuixStreamingClient
Environment.SetEnvironmentVariable("Quix__Workspace__Id", prev);
@peter-quix peter-quix added the bug Something isn't working label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant