Skip to content

Search API returns 500 for valid tag queries on /api/v1/search/compounds #1538

Description

@NishaSharma14

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:

  1. Send a POST request to /api/v1/search/compounds
  2. Use headers:
    • accept: application/json
    • content-type: application/json
  3. Use query parameters including tagType=chemical_class (with pagination/sort as needed)
  4. Use request body:
{
  "query": "Hypoxia",
  "type": "tags"
}
  1. 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
API client showing 500 error for tag search request

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions