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

Networking issues when using local Quepid installation and local search engine in Docker #961

Closed
wrigleyDan opened this issue Feb 27, 2024 · 1 comment · Fixed by #963
Closed

Comments

@wrigleyDan
Copy link
Contributor

Describe the bug
When setting up and using Quepid locally and trying to access a local search engine installation via the Custom Search API endpoint a status code 500 is returned.
The reason for this is that Quepid and the search engine are not within the same network when running in Docker. It is strange to not see this working and receive a "Connection refused" error.

To Reproduce
Steps to reproduce the behavior:

  1. Have a search engine running in a Docker container, e.g. Elasticsearch running on localhost:9200 (assuming es-tmdb for this example)
  2. Have Quepid running in a Docker container, e.g. on localhost:3000
  3. Create a case with the following settings:
    URL: http://localhost:9200/tmdb/_search
    API Method: POST
    Query:
{
  "query": {
    "match": {
      "title": "rambo"
    }
  }
}

Expected behavior
Would be nice to see this working although containers are in different networks.

Screenshots
image

image

Additional context
n/a

@epugh
Copy link
Member

epugh commented Feb 27, 2024

Okay, so I didn't Solve the problem, but I do now trap the error and provide a nice 500 error in json!

@epugh epugh linked a pull request Feb 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants