Skip to content

Add detail reported with 400 errors #251

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

Open
dblock opened this issue Apr 23, 2024 · 0 comments
Open

Add detail reported with 400 errors #251

dblock opened this issue Apr 23, 2024 · 0 comments
Labels
enhancement Increases software capabilities beyond original client specifications

Comments

@dblock
Copy link
Member

dblock commented Apr 23, 2024

Is your feature request related to a problem? Please describe.

Coming from #227 and #249 the error in the output is not helpful.

[Ruby-0-Thread-10: /usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-opensearch-2.0.2-java/lib/logstash/plugin_mixins/opensearch/common.rb:77]
opensearch - Failed to install template {:message=>"Got response code '400' contacting OpenSearch at URL '[https://xxxx:443/_template/logstash](https://xxxx/_template/logstash)'",
:exception=>LogStash::Outputs::OpenSearch::HttpClient::Pool::BadResponseCodeError,
:backtrace=>["/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-opensearc ...

Describe the solution you'd like
The error should contain the JSON body returned from the server so that it can be actioned.

@dblock dblock added the enhancement Increases software capabilities beyond original client specifications label Apr 23, 2024
@dblock dblock removed the untriaged label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Increases software capabilities beyond original client specifications
Projects
None yet
Development

No branches or pull requests

1 participant