Forum Discussion
Power BI and Bitbucket Connection Issue
- 11 months ago
I would ask the IT team, whether there has been an update or change in the firewall. Do they still allow anonymous connections? Try with a named user.
Hi KeerthanA_99
ChatGPT said:
What you’re seeing is essentially an authentication redirect coming from Bitbucket’s side, not a Power BI issue directly. Until recently, Bitbucket allowed access to certain endpoints anonymously, which is why your web connection with the “Anonymous” option in Power BI worked. However, Atlassian (Bitbucket’s parent) has tightened authentication policies, and now your request is being intercepted by their authentication plugin, which sets cookies and tries to redirect you to a login flow. That’s why Power BI shows the raw HTML page instead of your data. Since there’s no official connector for Bitbucket in Power BI, many people rely on web connections or APIs, and those endpoints now typically require authentication via a username + app password (or OAuth). The workaround is to stop using the anonymous option and instead use “Basic” authentication in Power BI’s Web connector, supplying your Bitbucket username (or email) and an app password you generate in Bitbucket. Another approach is to call the Bitbucket REST API with the appropriate authentication headers, which you can do in Power Query with Web.Contents and headers for Authorization. In short, the anonymous method you were using is deprecated on Bitbucket’s side, and you’ll need to switch to authenticated API calls to continue pulling your data.