Search category results in error when includeDeleteObjects = true and includePathToRoot=true

in recently version, e.g., 20240515, call api post:/v2/catalog/search,
request:
{
“object_types”: [
“CATEGORY”
],
“include_deleted_objects”:true,
“include_category_path_to_root”:true
}
response:
{
“errors”: [
{
“category”: “API_ERROR”,
“code”: “INTERNAL_SERVER_ERROR”,
“detail”: “An internal error has occurred, and the API was unable to service your request.”
}
]
}

please fix the bug as soon as possible.

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Retrieve Catalog Objects
Update Catalog Objects
Delete Catalog Objects and Query Deleted Objects

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

I was able to replicate this and have escalated to the team. In the meantime if you remove include_deleted_objects it will work. :slightly_smiling_face: