Skip to content

.Net: Bug: function PrepareQueryParams in Common\HttpClientHelpers.cs should use PrepareQueryParamsRegex instead of ParseErrorMessageBodyRegex #78

@Lingchar

Description

@Lingchar

Describe the bug
function PrepareQueryParams in Common\HttpClientHelpers.cs should use PrepareQueryParamsRegex instead of ParseErrorMessageBodyRegex.

To Reproduce
just call ChromaClient.CountCollections

Expected behavior
@@ -168,11 +168,11 @@ or HttpStatusCode.InternalServerError
}

private static List<string> PrepareQueryParams(string input)
{

#if NETSTANDARD2_0

  •   return ParseErrorMessageBodyRegex.Matches(input)
    
  •   return PrepareQueryParamsRegex.Matches(input)
      	.Cast<Match>()
      	.Select(x => x.Value)
      	.ToList();
    

#else
return PrepareQueryParamsRegex().Matches(input)

Platform

Language: C#
IDE: Visual Studio
OS: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions