-
Notifications
You must be signed in to change notification settings - Fork 47
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
MeiliSearch::Rails::MSCleanUpJob 404 error when deleting records #352
Labels
bug
Something isn't working
Comments
The error only seems to occur when enqueue is set to true and meilisearch spawns a bg job for the deletion. If i set to |
ellnix
added a commit
to ellnix/meilisearch-rails
that referenced
this issue
Apr 20, 2024
ellnix
added a commit
to ellnix/meilisearch-rails
that referenced
this issue
Apr 20, 2024
@ellnix Thanks a lot for the quick response and fix. I can confirm the PR works |
ellnix
added a commit
to ellnix/meilisearch-rails
that referenced
this issue
Apr 30, 2024
brunoocasali
added a commit
that referenced
this issue
May 7, 2024
Fix missing index_uid in clean up job (#352)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When i delete a record in my rails app which has meilisearch indexing set up, the background job fails with the following error:
Error: MeiliSearch::ApiError: 404 Not Found - MeiliSearch API has not returned any error message. See <no documentation link found>.
Arguments:
[{"index_uid"=>nil, "primary_key"=>"45", "synchronous"=>nil, "_aj_hash_with_indifferent_access"=>true}]
For some reason
index_uid
is nil and it cannot find the record. My model setup is pretty straight forwardExpected behavior
The document to be deleted from the Meilisearch Index
Current behavior
Error explained above
Screenshots or Logs
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: