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

Internal server error when Advanced Search returns no results #122

Open
jseager7 opened this issue May 2, 2024 · 0 comments
Open

Internal server error when Advanced Search returns no results #122

jseager7 opened this issue May 2, 2024 · 0 comments
Labels
advanced search Related to the Advanced Search functionality on the website bug Something isn't working medium priority
Milestone

Comments

@jseager7
Copy link

jseager7 commented May 2, 2024

When the Advanced Search returns zero results for a search query, the search results are not updated on the page and an error is shown in the web console:

{
    "headers": {
        "normalizedNames": {},
        "lazyUpdate": null
    },
    "status": 500,
    "statusText": "OK",
    "url": "https://phi5.phi-base.org/api/search?start=0&offset=10",
    "ok": false,
    "name": "HttpErrorResponse",
    "message": "Http failure response for https://phi5.phi-base.org/api/search?start=0&offset=10: 500 OK",
    "error": {
        "timestamp": 1714656790499,
        "status": 500,
        "error": "Internal Server Error",
        "exception": "java.lang.IllegalArgumentException",
        "message": "[size] must be greater than 0. Found [0] in [PHIG_ID]",
        "path": "/api/search"
    }
}

I can trigger this error with the following search criteria:

  • Pathogen Species: Botrytis cinerea
  • High level term: increased resistance to chemical
@jseager7 jseager7 added bug Something isn't working medium priority advanced search Related to the Advanced Search functionality on the website labels May 2, 2024
@jseager7 jseager7 added this to the Second deployment milestone Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advanced search Related to the Advanced Search functionality on the website bug Something isn't working medium priority
Projects
None yet
Development

No branches or pull requests

1 participant