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

Uncaught TypeError: self.on is not a function when trying to connect #17

Open
simtrax opened this issue Sep 27, 2016 · 4 comments
Open

Comments

@simtrax
Copy link

simtrax commented Sep 27, 2016

I get an error when trying to connect to ES on AWS.
Using this code supplied in the readme:

var es = require('elasticsearch').Client({
  hosts: 'https://amazon-es-host.us-east-1.es.amazonaws.com',
  connectionClass: require('http-aws-es'),
  amazonES: {
    region: 'us-east-1',
    accessKey: 'AKID',
    secretKey: 'secret'
  }
});

I guess it's a dependency that does not work as intended.

skarmavbild 2016-09-27 kl 22 05 13

skarmavbild 2016-09-27 kl 22 05 36

@mrobinson537
Copy link

I am experiencing the same issue.

@johnnyfreeman
Copy link

johnnyfreeman commented Nov 12, 2016

+1

I'm guessing the reason is this connector is designed to work from the server and not the browser?

@mgsterling11
Copy link

I am experiencing this issue as well. I have a basic browser-based react app (through create-react-app: https://github.com/facebookincubator/create-react-app) with no node backend. does the client need to be established on the server?

@florianbepunkt
Copy link

@simtrax @mgsterling11 @johnnyfreeman @Matterful Has anyone of you been able to solve this issue? I experience the same with my react app. No idea how to work around this… any help would be appreciated.

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

No branches or pull requests

5 participants