GithubHelp home page GithubHelp logo

Comments (7)

denitsa-md avatar denitsa-md commented on May 26, 2024 1

Aiiiiiii, it worked - with port :443. So happy! Thank you @matchish - it was the host indeed!!

from laravel-scout-elasticsearch.

matchish avatar matchish commented on May 26, 2024

It's not the package issue. Stack overflow is the preferred and recommended way to ask support questions https://stackoverflow.com/questions/tagged/laravel-scout%20laravel%20elasticsearch

Feel free to add link to stackoverflow question to this issue

from laravel-scout-elasticsearch.

denitsa-md avatar denitsa-md commented on May 26, 2024

@bluelupin Were you able to resolve your issue? I am getting the same error.

I can ping AWS' elasticsearch endpoint in the browser and get a response for the cluster, but it doesn't work when added as the ELASTICSEARCH_HOST.

I did some dumps inside the Elasticsearch\Connections\Connection:performRequest() method and I see I'm getting an Failed to connect to _endpoint_ port 9200: Timed out

from laravel-scout-elasticsearch.

matchish avatar matchish commented on May 26, 2024

@denitsa-cm Often is a wrong host issue.
Like this https://stackoverflow.com/questions/56825683/why-am-i-getting-no-alive-nodes-found-in-your-cluster-using-laravel-and-docker/56847295?noredirect=1#comment108176650_56847295

from laravel-scout-elasticsearch.

denitsa-md avatar denitsa-md commented on May 26, 2024

@matchish Thanks for the link. There is no doubt I'm doing something wrong, but not sure it's the host :D

endpoint

I'm taking the endpoint from AWS' elasticsearch domain, and setting it as ELASTICSEARCH_HOST. I tried setting it with a slash in the end, without a slash, with port :9200 and :80 (clearing config cache inbetweeen), but no luck.

Hitting the endpoint in the browser gives me this. (my ip is whitelisted in the policy)
cluster

I'll read a bit more and put this on stackoverflow.

from laravel-scout-elasticsearch.

matchish avatar matchish commented on May 26, 2024

You have to try to reach the endpoint from the same machine (container) where is your laravel application not browser.

from laravel-scout-elasticsearch.

denitsa-md avatar denitsa-md commented on May 26, 2024

I'm running the app with valet, so I thought I should just be able to reach it.

P.S. I can also curl it locally.

from laravel-scout-elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.