Docker Community Forums

Share and learn in the Docker community.

Getting error "error parsing HTTP 403 response body: invalid character '<' looking for beginning of value:" when i tried to install kafka using docker

Command used: docker-compose -f docker-compose.yml up -d

m-c02c61bkmd6r:Kafka-Docker-setup-wurstmeister p0m026v$ docker --version
Docker version 20.10.8, build 3967b7d
m-c02c61bkmd6r:Kafka-Docker-setup-wurstmeister p0m026v$ docker-compose --version
docker-compose version 1.29.2, build 5becea4c
m-c02c61bkmd6r:Kafka-Docker-setup-wurstmeister p0m026v$

m-c02c61bkmd6r:Kafka-Docker-setup-wurstmeister p0m026v$ docker-compose -f docker-compose.yml up -d
Pulling kafka (wurstmeister/kafka:)…
latest: Pulling from wurstmeister/kafka
540db60ca938: Downloading
f0698009749d: Pulling fs layer
5a8268dcf647: Downloading
ae444239b90c: Waiting
c450682c9350: Downloading
ERROR: error parsing HTTP 403 response body: invalid character ‘<’ looking for beginning of value: "

Please use the edit pencil and the formatting toolbar to format your post and fix the broken images. Also, did you try disabling McAfee? Thanks.

1 Like

The first revision of your post showed the relevant details:

<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
...
<body onload="swOnLoad()">
<td class="contentData">
McAfee Web Gateway has blocked the file, because the detected media type (see below) is not allowed.
...
<b>Media Type (detected): </b>application/x-gzip

Docker Compose cannot handle this McAfee-generated HTML error page.

1 Like