Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Request body is being escaped forming invalid json #103

Open
isbalashov opened this issue Dec 28, 2018 · 3 comments
Open

Request body is being escaped forming invalid json #103

isbalashov opened this issue Dec 28, 2018 · 3 comments

Comments

@isbalashov
Copy link

Please post all product and debugging questions on our forum. Your questions will reach our wider community members there, and if we confirm that there is a bug, then we can open a new issue here.

For all general issues, please provide the following details for fast resolution:

  • Version:
  • Operating System: CentOS 7
  • Config File (if you have sensitive info, please remove it):
    default
  • Sample Data:
  • Steps to Reproduce:
    Following pipeline is used
input {
  http_poller {
    urls => {
      something => {
        method => post
        url => "https://link.de"
        headers => {
          "Content-Type" => "application/json"
        }
        body => '{
          "key":"value",
          "params":null,
          "id":1
        }'
     }
    }
    request_timeout => 60
    # Supports "cron", "every", "at" and "in" schedules by rufus scheduler
    schedule => { cron => "*/2 * * * * UTC"}
    codec => "json"
    # A hash of request metadata info (timing, response headers, etc.) will be sent here
    metadata_target => "http_poller_metadata"
  }
}

Body is being escaped forming invalid json

    "http_poller_metadata" => {
        "response_message" => "OK",
           "times_retried" => 0,
         "runtime_seconds" => 0.488045,
                    "host" => "bf766666fad2",
                    "code" => 200,
                    "name" => "something",
                 "request" => {
               "body" => "{\"key\":\"value\",\"params\":null,\"id\":1}",
@isbalashov
Copy link
Author

Any progress so far?

@muralidharanvenkataraman

Any updates ? Having similar issue with pulling logs from vmwareworkspace.

@enumanc
Copy link

enumanc commented Dec 13, 2022

Same issue here ! no solution since 2018 ?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants