I created a custom pipe that creates reports using /report/{reportId} Bitbucket API endpoint. When I am running the pipe container locally with authentication everything works, but when it runs in an actual pipeline with proxy 'http://host.docker.internal:29418' I get 400 response, and the following is the body of the response:
<span><head><title>400 Bad Request</title></head><br></span><span><body><br></span><span><center><h1>400 Bad Request</h1></center><br></span><span><hr><center>nginx/1.15.5</center></span><span><br></body><br></span><span></html></span><span><html><br></span>
When running with curl, it outputs this error: `Received HTTP code 400 from proxy after CONNECT`.
How can I find out what I am doping wrong?