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

Azure.Search: Determine the correct approach for nested SearchErrors #10598

Closed
tg-msft opened this issue Mar 13, 2020 · 8 comments
Closed

Azure.Search: Determine the correct approach for nested SearchErrors #10598

tg-msft opened this issue Mar 13, 2020 · 8 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. MQ This issue is part of a "milestone of quality" initiative. Search
Milestone

Comments

@tg-msft
Copy link
Member

tg-msft commented Mar 13, 2020

The swagger includes nested errors as details and we should determine how we want to expose them.

@tg-msft tg-msft added Client This issue points to a problem in the data-plane of the library. Search labels Mar 13, 2020
@tg-msft tg-msft self-assigned this Mar 13, 2020
@tg-msft tg-msft added this to the [2020] April milestone Mar 19, 2020
@tg-msft
Copy link
Member Author

tg-msft commented Mar 19, 2020

The service is working these out now. We'll probably have to put this in additionalInfo but will circle back in a preview or two.

@Mohit-Chakraborty
Copy link
Contributor

Mohit-Chakraborty commented Mar 27, 2021

An example of an error that triggers this assert is from the test RegexSpecialCharsUnescapedThrows()-

{
"error":
{
  "code":"InvalidRequestParameter",
  "message":"Failed to parse query string at line 1, column 8. See https://aka.ms/azure-search-full-query for supported syntax.",
  "details":
    [
    {"code":"InvalidSearchSyntax",
     "message":"Failed to parse query string at line 1, column 8. See https://aka.ms/azure-search-full-query for supported syntax."
    }
    ]
}
}

Mohit-Chakraborty added a commit to Mohit-Chakraborty/azure-sdk-for-net that referenced this issue Mar 27, 2021
@Mohit-Chakraborty
Copy link
Contributor

This is also causing the same 8 test failures in Search weekly tests where the tests expects a particular exception to be thrown but the assert fires instead.
Here is a sample run.

Mohit-Chakraborty added a commit that referenced this issue Mar 28, 2021
* Enable GeoJson support in Azure.Search.Documents

* Use a GeoJson field in search test resources
Update tests

* Create shared instance of GeoJsonConverter

* Suppress assert triggered by nested errors
It is a known issue - #10598
@AlexGhiondea
Copy link
Contributor

@Mohit-Chakraborty anything else left for us to do here?

@Mohit-Chakraborty
Copy link
Contributor

I see there has been a reformatting of code and we have removed the custom code in favor of using the common impl from Azure.Core.
The assert calling out the problem does not exist in this version.

I thought we still need a way to agree on how to surface nested errors. I will follow-up on it.

@pallavit
Copy link
Contributor

pallavit commented Dec 7, 2022

@ShivangiReja could you please check if there is anything left to be done here or can we close this issue?

@ShivangiReja ShivangiReja added the MQ This issue is part of a "milestone of quality" initiative. label Dec 7, 2022
@pallavit
Copy link
Contributor

@ShivangiReja I believe we can close this issue as not planned. Please feel free to open if you feel otherwise. /cc: @tg-msft as FYI.

@pallavit pallavit closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. MQ This issue is part of a "milestone of quality" initiative. Search
Projects
Archived in project
Development

No branches or pull requests

5 participants