• cyrix2000

    (@cyrix2000)


    Hi, I’ve installed the Meilisearch docker container on the same server WordPress is running. On the server command line I can access http://localhost:7700 without issues and got my API keys. But when I use the same URL in the plugin (together with the correct API key), I’m just getting the “failed to fetch” message. What could be the issue? I’m using the latest version of Meilisearch and the latest plugin version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • pintraj

    (@pintraj)

    Check the logs of melisearch and check the key which you used to connect the melisearch

    Plugin Author ponopress

    (@ponopress)

    Hi @cyrix2000 ,

    Thank you for your patience with our late response. We’ve been working through a number of support requests alongside ongoing feature improvements, which caused some delays in getting back to you. We appreciate your understanding.

    Regarding your issue: when running Meilisearch inside Docker, the service is isolated from your host environment. That means http://localhost:7700 inside the container refers to the container itself, not your host machine where WordPress is running. From WordPress (running on the host), the plugin cannot reach Meilisearch at that URL.

    Most often, replacing http://localhost:7700 with your server’s IP address or domain name resolves the issue.

    Could you try updating the connection URL in the plugin to http://<your-server-ip>:7700 and let us know if that works?

    Regards,
    Pono Press

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Can’t connect from plugin to server’ is closed to new replies.