[bug] Meilisearch is broken #648

Closed
opened 2023-10-14 00:02:32 +00:00 by zygoptera · 1 comment

Your setup

From source

Extra details

No response

Version

d1af78aba1

PostgreSQL version

16

What were you trying to do?

On meilisearch 1.4.1, indexing, searching, clearing, all fails with the following error:

** (FunctionClauseError) no function clause matching in Version.Parser.parse_version/2    
    
    The following arguments were given to Version.Parser.parse_version/2:
    
        # 1
        nil
    
        # 2
        false
    
    Attempted function clauses (showing 1 out of 1):
    
        def parse_version(string, approximate?) when is_binary(string)
    
    (elixir 1.14.0) lib/version.ex:580: Version.Parser.parse_version/2
    (elixir 1.14.0) lib/version.ex:458: Version.to_matchable/2
    (elixir 1.14.0) lib/version.ex:292: Version.match?/3
    (pleroma 3.10.3-203-gd1af78ab-develop) lib/mix/tasks/pleroma/search/meilisearch.ex:25: Mix.Tasks.Pleroma.Search.Meilisearch.run/1
    (mix 1.14.0) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4
    (mix 1.14.0) lib/mix/cli.ex:84: Mix.CLI.run_task/2

What did you expect to happen?

Indexing to work. Meilisearch to work in general.

What actually happened?

Meilisearch does not work. It seems to be able to add new entries to meilisearch, but all searches return

Oct 14 00:01:49 host mix[4734]: 00:01:49.472 [error] Elixir.Pleroma.Web.MastodonAPI.SearchController search error: %Protocol.UndefinedError{protocol: Enumerable, value: nil, description: ""}

Logs

No response

Severity

I cannot use it as easily as I'd like

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup From source ### Extra details _No response_ ### Version d1af78aba11a20da17bbe2a7c0bf303bf30f6323 ### PostgreSQL version 16 ### What were you trying to do? On meilisearch 1.4.1, indexing, searching, clearing, all fails with the following error: ``` ** (FunctionClauseError) no function clause matching in Version.Parser.parse_version/2 The following arguments were given to Version.Parser.parse_version/2: # 1 nil # 2 false Attempted function clauses (showing 1 out of 1): def parse_version(string, approximate?) when is_binary(string) (elixir 1.14.0) lib/version.ex:580: Version.Parser.parse_version/2 (elixir 1.14.0) lib/version.ex:458: Version.to_matchable/2 (elixir 1.14.0) lib/version.ex:292: Version.match?/3 (pleroma 3.10.3-203-gd1af78ab-develop) lib/mix/tasks/pleroma/search/meilisearch.ex:25: Mix.Tasks.Pleroma.Search.Meilisearch.run/1 (mix 1.14.0) lib/mix/task.ex:421: anonymous fn/3 in Mix.Task.run_task/4 (mix 1.14.0) lib/mix/cli.ex:84: Mix.CLI.run_task/2 ``` ### What did you expect to happen? Indexing to work. Meilisearch to work in general. ### What actually happened? Meilisearch does not work. It seems to be able to add new entries to meilisearch, but all searches return ``` Oct 14 00:01:49 host mix[4734]: 00:01:49.472 [error] Elixir.Pleroma.Web.MastodonAPI.SearchController search error: %Protocol.UndefinedError{protocol: Enumerable, value: nil, description: ""} ``` ### Logs _No response_ ### Severity I cannot use it as easily as I'd like ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
zygoptera added the
bug
label 2023-10-14 00:02:32 +00:00
Author

Forgot to sync my config to the db

Forgot to sync my config to the db
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#648
No description provided.