Describe the bug
Search API returns a 500 Internal Server Error when querying valid tags in compound search.
To Reproduce
Steps to reproduce the behavior:
- Send a
POST request to /api/v1/search/compounds
- Use headers:
accept: application/json
content-type: application/json
- Use query parameters including
tagType=chemical_class (with pagination/sort as needed)
- Use request body:
{
"query": "Hypoxia",
"type": "tags"
}
- Observe server response
Expected behavior
The API should return successful search results (or a handled empty result) for valid tag queries instead of a 500 error.
Screenshots

Describe the bug
Search API returns a
500 Internal Server Errorwhen querying valid tags in compound search.To Reproduce
Steps to reproduce the behavior:
POSTrequest to/api/v1/search/compoundsaccept: application/jsoncontent-type: application/jsontagType=chemical_class(with pagination/sort as needed){ "query": "Hypoxia", "type": "tags" }Expected behavior
The API should return successful search results (or a handled empty result) for valid tag queries instead of a 500 error.
Screenshots
