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

Meilisearch\Exceptions\ApiException errorLink not correct #3146

Open
AnthonyBerisha opened this issue Jan 30, 2025 · 1 comment
Open

Meilisearch\Exceptions\ApiException errorLink not correct #3146

AnthonyBerisha opened this issue Jan 30, 2025 · 1 comment
Labels
fix/improvement good first issue Issues that are easy or quick to fix

Comments

@AnthonyBerisha
Copy link

Description
I've been tinkering in my app using meilisearch-php v1.12 and when getting an ApiException I get a errorLink but the error code does not exist in the doc, is the Exception outdated here ? Should I post the issue in the docs repo ?
Here is the

Screenshots or Logs
If applicable, add screenshots or logs to help explain your problem.

{#2262 // vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:145
  #message: ?
  #code: 400
  #file: "
/var/httpdocs/manager/vendor
/meilisearch/meilisearch-php/
src/Http/Client.php
"
  #line: 186
  +httpStatus: 400
  +message: """
    Attribute `id` is not filterable. This index does not have configured filterable attributes.
    1:3 id NOT IN [1, 2, 3]
    """
  +errorCode: "invalid_filter"
  +errorType: "invalid_request"
  +errorLink: "https://docs.meilisearch.com/errors#invalid_filter"
  +httpBody: array:4 [
    "message" => """
      Attribute `id` is not filterable. This index does not have configured filterable attributes.
      1:3 id NOT IN [1, 2, 3]
      """
    "code" => "invalid_filter"
    "type" => "invalid_request"
    "link" => "https://docs.meilisearch.com/errors#invalid_filter"
  ],
  ...
}

This is annoying as I don't really know what's going on

Environment (please complete the following information):

  • OS: MacOS 14.4.1
  • Meilisearch version: 1.12
  • meilisearch-php version: 1.12
@curquiza curquiza transferred this issue from meilisearch/meilisearch-php Feb 5, 2025
@curquiza
Copy link
Member

curquiza commented Feb 5, 2025

Hello @AnthonyBerisha
thanks for the report, I moved the issue to the documentation repo

@curquiza curquiza added fix/improvement good first issue Issues that are easy or quick to fix labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix/improvement good first issue Issues that are easy or quick to fix
Projects
None yet
Development

No branches or pull requests

2 participants