Hi
I have a node.js code that runs in the bitbucket pipeline. I called curl http://localhost:3000 but it didn't work. I found some links saying bitbucket pipeline doesn't allow to connection to localhost.
Is there a way to find the IP address of where the server was binded to so I can connect to the server to run some tests
Thanks
Hi Jason and welcome to the community!
Have you started an application at localhost port 3000 or are you using a Docker service container that listens on port 3000, on the same step where you do curl http://localhost:3000? There is no issue with using localhost as long as you have an application running on localhost on this port or a service container. For certain service containers you may need to use 127.0.0.1 instead of localhost. It is also not clear for which server you are looking the IP.
I suggest debugging this build locally with Docker as per the following guide:
Then check if you get the same error or if the build succeeds. If the build succeeds when troubleshooting locally as per our guide, you can create a ticket with the support team and share (1) the output from your local troubleshooting and (2) the URL of the failed Pipelines build, for further investigation. You can create a ticket via https://support.atlassian.com/contact/#/, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.