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-Type header [text/plain] is not supported #50

Closed
caryyu opened this issue Apr 26, 2018 · 2 comments
Closed

Content-Type header [text/plain] is not supported #50

caryyu opened this issue Apr 26, 2018 · 2 comments

Comments

@caryyu
Copy link

caryyu commented Apr 26, 2018

Elasticsearch Version

6.2.4

Output below by errorsToStderr = true

Failed to send events to Elasticsearch: Got response code [406] from server with data {"error":"Content-Type header [text/plain] is not supported","status":406}

@abatkin
Copy link
Member

abatkin commented Apr 26, 2018

Perhaps you could try changing the content type to something else, maybe application/json?

        <headers>
            <header>
                <name>Content-Type</name>
                <value>application/json</value>
            </header>
        </headers>

@caryyu
Copy link
Author

caryyu commented Apr 27, 2018

@abatkin thx, that works.

@caryyu caryyu closed this as completed Apr 27, 2018
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

2 participants