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

Content-Length header is absent #64

Open
droganov opened this issue Mar 19, 2013 · 2 comments
Open

Content-Length header is absent #64

droganov opened this issue Mar 19, 2013 · 2 comments

Comments

@droganov
Copy link

Module sends invalid request wich make it unusable if we place elastic behind ngnx.

As we run:

elasticSearchClient.createIndex("test_index")
    .on('data', function(data) {
        console.log("results -->");
        console.log(data);
    }).exec();

We get:

<html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx</center>
</body>
</html>
@phillro
Copy link
Owner

phillro commented Mar 19, 2013

Hrm, we use it behind nginx in prod. Also Line 86:
https://github.com/phillro/node-elasticsearch-client/blob/master/lib/elasticsearchclient/calls/elasticSearchCall.js

However I try to reproduce.

On Tue, Mar 19, 2013 at 7:37 AM, droganov [email protected] wrote:

Module sends invalid request wich make it unusable if we place elastic
behind ngnx.

As we run:

elasticSearchClient.createIndex("test_index")
.on('data', function(data) {
console.log("results -->");
console.log(data);
}).exec();

We get:

<title>411 Length Required</title>

411 Length Required


nginx


Reply to this email directly or view it on GitHubhttps://github.com//issues/64
.

@plusbpm
Copy link

plusbpm commented Mar 19, 2013

in line 81:
if this.params.data is null (default settings for index) --> no header Content-Length.

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

3 participants