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

GetRange includes line return to response #92

Closed
CriggerMarg opened this issue Mar 29, 2021 · 2 comments
Closed

GetRange includes line return to response #92

CriggerMarg opened this issue Mar 29, 2021 · 2 comments

Comments

@CriggerMarg
Copy link

Describe the bug
RangeResponse GetRange(
string prefixKey,
Metadata headers = null,
DateTime? deadline = null,
CancellationToken cancellationToken = default (CancellationToken))
includes line return to key values.

To Reproduce
Steps to reproduce the behavior:

  1. Load some keys to etcd
  2. Fetch them with GetRange method
  3. Look to each key Value.Span property
  4. You'll see \r at the end of value.

Expected behavior
Do not include line return as GetVal method does.

Additional context
We are using prefixes like /API_NAME/Key_Name "key_Value"

@shubhamranjan
Copy link
Owner

Thanks for reporting. I double check and see that the GetVal method returns trimmed response from code. However, \r is not something that is being added by the library. Its most likely the actual value inside etcd contains \r, hence you are getting it in response.

@CriggerMarg
Copy link
Author

Most likely. Thanks for checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants