Getting 400 from proxy in a custom pipe

Amit Edelshtein
Contributor
November 18, 2020

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:

<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.15.5</center>
</body>
</html>

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?

1 answer

1 accepted

2 votes
Answer accepted
Amit Edelshtein
Contributor
November 18, 2020

Found the problem - when working with the proxy, the call to BB API needs to be sent over http, not https 🤦🏻‍♂️

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events