Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,805
Community Members
 
Community Events
176
Community Groups

IP whitelisting - UI works but API fails

Hi All,

I am facing very weird issue with respect to IP whitelisting.

I have whitelisted my ip bitbucket cloud settings(workspace -> access control). Now, my bitbucket UI works fine however when I try to fetch any data with bitbucket cloud apis like - https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/pullrequests?state=DECLINED&pagelen=2 - API responds - {"type": "error", "error": {"message": "To access this repository, an admin must whitelist your IP."}}

 

Is this a known bug? Or am I missing something?

1 answer

0 votes

Hi Vishal,

  • Are you running these API calls from the same machine where you access Bitbucket from browser?
  • Are you running the API calls from terminal with curl, or are you using an API client?

If you are using curl to run API calls from a terminal application, I would suggest running

curl ipinfo.io

and seeing what IP this command returns.

If you're using an API client, you can run a GET request to ipinfo.io and check what IP this call returns.

Is the IP you get the same one you whitelisted and do you see it listed in

https://bitbucket.org/{your-workspace-id}/workspace/settings/access-controls

(replace {your-workspace-id} with the id of your workspace)

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events