You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
If you use the client to find documents using a filter that would have a syntax error the MeilisearchError::ApiError is no longer raised but instead of TypeError is raised. We would capture the MeilisearchError::ApiError to capture the error message to help inform the user what went wrong.
Expected behavior
That the appropriate MeilisearchError::ApiError is raised
Current behavior
A TypeError of "no implicit conversion of Hash into String"
Screenshots or Logs
Here is a sample script I used to reduce the problem down
=>"catch-error-issue"=>{"taskUid"=>29,"indexUid"=>"catch-error-issue","status"=>"enqueued","type"=>"indexCreation","enqueuedAt"=>"2024-01-16T15:12:28.729044Z"}=>{"taskUid"=>30,"indexUid"=>"catch-error-issue","status"=>"enqueued","type"=>"settingsUpdate","enqueuedAt"=>"2024-01-16T15:12:28.753813Z"}=>{"uid"=>29,"indexUid"=>"catch-error-issue","status"=>"succeeded","type"=>"indexCreation","canceledBy"=>nil,"details"=>{"primaryKey"=>"id"},"error"=>nil,"duration"=>"PT0.007108S","enqueuedAt"=>"2024-01-16T15:12:28.729044Z","startedAt"=>"2024-01-16T15:12:28.729823Z","finishedAt"=>"2024-01-16T15:12:28.736931Z"}=>{"uid"=>30,"indexUid"=>"catch-error-issue","status"=>"succeeded","type"=>"settingsUpdate","canceledBy"=>nil,"details"=>{"searchableAttributes"=>["test_filter"],"filterableAttributes"=>["id","test_filter"]},"error"=>nil,"duration"=>"PT0.002684S","enqueuedAt"=>"2024-01-16T15:12:28.753813Z","startedAt"=>"2024-01-16T15:12:28.75465Z","finishedAt"=>"2024-01-16T15:12:28.757334Z"}=>#<TypeError: no implicit conversion of Hash into String>=> false
Thank you very much for this bug report. There seems to be a logic problem in version_error_handler, I will fix it and update the specs as soon as I can.
Description
If you use the client to find documents using a filter that would have a syntax error the
MeilisearchError::ApiError
is no longer raised but instead ofTypeError
is raised. We would capture theMeilisearchError::ApiError
to capture the error message to help inform the user what went wrong.Expected behavior
That the appropriate
MeilisearchError::ApiError
is raisedCurrent behavior
A TypeError of "no implicit conversion of Hash into String"
Screenshots or Logs
Here is a sample script I used to reduce the problem down
Results
Backtrace
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: