# Fail to parse HTTP parameters: parse "response\\"}}\\nPOST /\_bulk": net/url: invalid control character in

**URL:** <https://discuss.elastic.co/t/fail-to-parse-http-parameters-parse-response-npost-bulk-net-url-invalid-control-character-in/259652>\
**Category:** Beats\
**Tags:** docker, packetbeat\
**Created:** [December 25, 2020, 11:18pm UTC](https://discuss.elastic.co/t/fail-to-parse-http-parameters-parse-response-npost-bulk-net-url-invalid-control-character-in/259652 "2020-12-25T23:18:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alir3z4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alir3z4/32/81411_2.png) [@Alir3z4](https://discuss.elastic.co/u/Alir3z4)\
**Post date:** [December 25, 2020, 11:18pm UTC](https://discuss.elastic.co/t/fail-to-parse-http-parameters-parse-response-npost-bulk-net-url-invalid-control-character-in/259652/1 "2020-12-25T23:18:40Z")

</div>

I'm running packetbeat version 7.10.1;  
Looking at its logs I see

```auto
2020-12-25T23:08:29.956Z WARN http/http.go:545 Fail to parse HTTP parameters: parse "response\"}}\nPOST /_bulk": net/url: invalid control character in URL

```

That's the request coming from when I work with Kibana, but in anycase, the same error for any other requests such as

Another example of URL having the same error

```auto
2020-12-25T23:09:46.540Z WARN http/http.go:545 Fail to parse HTTP parameters: parse "{\"@timestamp\":\"2020-12-25T23:09:44.312Z\",\"ecs\":{\"version\":\"1.5.0\"},\"agent\":{\"type\":\"packetbeat\",\"version\":\"7.10.1\",\"hostname\":\"cluster_21xx\",\"ephemeral_id\":\"728fb7c8-8344-4a1f-8021-8e2730b98988\",\"id\":\"9069b0f6-b828-4733-89af-e6f592808e02\",\"name\":\"cluster_21xx\"},\"server\":{\"ip\":\"127.0.0.1\",\"port\":59326,\"bytes\":357},\"network\":{\"protocol\":\"http\",\"community_id\":\"1:HdIpZ+IuSXViGm8pYO7iR+8/w5U=\",\"bytes\":357,\"type\":\"ipv4\",\"transport\":\"tcp\"},\"type\":\"http\",\"source\":{\"ip\":\"172.18.0.2\",\"port\":9200},\"destination\":{\"ip\":\"127.0.0.1\",\"port\":59326,\"bytes\":357},\"host\":{\"name\":\"cluster_21xx\"},\"client\":{\"ip\":\"172.18.0.2\",\"port\":9200},\"event\":{\"end\":\"2020-12-25T23:09:44.312Z\",\"category\":[\"network_traffic\",\"network\"],\"type\":[\"connection\",\"protocol\"],\"kind\":\"event\",\"dataset\":\"http\"},\"related\":{\"ip\":[\"172.18.0.2\",\"127.0.0.1\"]},\"status\":\"Error\",\"error\":{\"message\":\"Unmatched response\"},\"http\":{\"response\":{\"status_phrase\":\"ok\",\"status_code\":200,\"bytes\":357,\"body\":{\"bytes\":246},\"headers\":{\"content-length\":246,\"content-type\":\"application/json; charset=UTF-8\"}}}}\nPOST /_bulk": net/url: invalid control character in URL

```

Here's the `packetbeat.yml` file content:

```auto
packetbeat.interfaces.device: any
packetbeat.interfaces.snaplen: 1514
packetbeat.interfaces.type: af_packet
packetbeat.interfaces.buffer_size_mb: 100

packetbeat.protocols:
  - type: icmp
    enabled: true

  - type: dhcpv4
    ports: [67, 68]

  - type: dns
    ports: [53]

  - type: http
    ports: [80, 8000]

  - type: amqp
    ports: [5672]

  - type: cassandra
    ports: [9042]

  - type: memcache
    ports: [11211]

  - type: mysql
    ports: [3306,3307]

  - type: redis
    ports: [6379]

  - type: pgsql
    ports: [5432]

  - type: thrift
    ports: [9090]

  - type: tls
    ports: [443, 993, 995, 5223, 8443, 8883, 9243]

```

Any idea what could be the problem?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 23, 2021, 1:18am UTC](https://discuss.elastic.co/t/fail-to-parse-http-parameters-parse-response-npost-bulk-net-url-invalid-control-character-in/259652/2 "2021-01-23T01:18:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
