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

500 error when searching on clean install: "Invalid filter parameters." #92

Closed
GraysonCAdams opened this issue Apr 22, 2024 · 0 comments · Fixed by #93
Closed

500 error when searching on clean install: "Invalid filter parameters." #92

GraysonCAdams opened this issue Apr 22, 2024 · 0 comments · Fixed by #93
Assignees
Labels
bug Something isn't working

Comments

@GraysonCAdams
Copy link

Describe the bug
On a fresh install of Grimoire using git clone and docker-compose up, running localhost without any default settings changed, the search feature is not working.

Inspecting traffic, I can see it's attempting to filter the relevant results based on the ids parameter being passed to the http://localhost:5173/api/bookmarks endpoint, however when any IDs are being passed in the array through the parameter, it's rejecting with a 500 and:

{
    "success": false,
    "error": "Invalid filter parameters."
}

To Reproduce
Steps to reproduce the behavior:

  1. Git clone
  2. docker-compose up
  3. Add a bookmark (I did it through Chrome companion extension)
  4. Try to search for title of bookmark
  5. Confirm no results show up
  6. Inspect traffic, see that ids param populates with ID of correct bookmark(s) when typing, however server is returning 500
  7. Intentionally search for incorrect bookmark, and confirm that the ids field is blank, and it returns 200

Expected behavior
When the HTTP request is generated for the /api/bookmarks endpoint and an array of ids is being passed through, the server should be responding with a 200 HTTP response with the metadata of the relevant bookmarks requested, and not a 500 Internal Server Error.

Screenshots
Screenshot 2024-04-21 at 11 03 55 PM

Desktop (please complete the following information):

  • OS: macOS 14.4.1 (23E224)
  • Browser Edge
  • Version 0.3.3
@goniszewski goniszewski self-assigned this Apr 26, 2024
@goniszewski goniszewski added the bug Something isn't working label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants