question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Meilisearch plugin results in error 405

See original GitHub issue

Bug report

Installing the latest version of the medusa-plugin-meilisearch, and the latest version of Meilisearch, results in both platforms reporting Method not allowed.

Describe the bug

Medusa reports:

⠙ Initializing pluginsError [MeiliSearchCommunicationError]: Method Not Allowed
    at /Users/pzehle/Sites/Repos/sellsly/sellsly-shop/node_modules/meilisearch/dist/bundles/meilisearch.umd.js:181:21
    at step (/Users/pzehle/Sites/Repos/sellsly/sellsly-shop/node_modules/meilisearch/dist/bundles/meilisearch.umd.js:81:27)
    at Object.throw (/Users/pzehle/Sites/Repos/sellsly/sellsly-shop/node_modules/meilisearch/dist/bundles/meilisearch.umd.js:62:57)
    at rejected (/Users/pzehle/Sites/Repos/sellsly/sellsly-shop/node_modules/meilisearch/dist/bundles/meilisearch.umd.js:53:69)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  type: 'MeiliSearchCommunicationError',
  errno: undefined,
  code: undefined
}

Meilisearch reports:

[2022-08-29T01:22:48Z INFO  actix_web::middleware::logger] 127.0.0.1 "POST /indexes/products/settings HTTP/1.1" 405 0 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" 0.000341

System information

Medusa version (including plugins): ^1.3.5 Medusa plugin meilisearch: 0.2.5 Node.js version: 16.14.2 Database: Postgres 14 Operating system: MacOS

Steps to reproduce the behavior

  1. Install medusa as per the documentation.
  2. Install meilisearch.
  3. Restart medusa.
  4. Check both errors.

Expected behavior

Medusa should be able to send the indexes and Meilisearch should be able to receive them. Both platforms should work as expected.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
olivermrblcommented, Sep 2, 2022

Updated meilisearch dependency in #2140. Will be part of next release 👍

0reactions
ensidialabscommented, Sep 2, 2022

Also encountered this error. Tried on 2 different computers, on a pure VPS. Tried to distribute search and medusa to different servers. Nothing helps. And its working with Meilisearch v 0.27.1, and with the last 28.1 problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

POST requests error to 405 · Issue #2619 · meilisearch ...
Describe the bug every POST request sent to meilisearch errors out to 405 To Reproduce Steps to reproduce the behavior: Install and run ......
Read more >
Settings | Meilisearch Documentation v0.30
Settings. The /settings route allows you to customize search settings for the given index. You can either modify all of an index's settings...
Read more >
Why your Website is giving an HTTP 405 Method Not Allowed ...
When a response has the status code 405, the client attempted to access a resource using an HTTP method that is not permitted...
Read more >
How to Fix the 405 Method Not Allowed Error in WordPress
The 405 error can be difficult to deal with due to a lack of information. Here's how to troubleshoot the error if you're...
Read more >
Strapi register method not allowed 405 in v4 seems url is ...
When I look in the Strapi admin in the User roles and permissions, I see in the box where the register options is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found