Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi Team,
I was using Power BI Desktop to connect with Bitbucket via web connection. This was working fine until last Friday using anonymous connection.
Now, I am facing an issue when trying to make a new connection and I am getting the below error
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="decorator" content="none"/>
<script src="/s/1395601366/40a434c/12vb6hw/5.1.15/.../download/resources/com.atlassian.plugins.authentication.atlassian-authentication-plugin:save-fragment/js.cookie.js"></script>
<script>
var expirationDate = new Date();
expirationDate.setTime(expirationDate.getTime() + 60000 * 5);
Cookies.set('atlassian-authentication-plugin-url-fragment_***', window.location.hash.substr(1), { expiration: expirationDate, path: '', secure: true, SameSite: 'None' });
window.location.assign(...)
</script>
</head>
<body>
<!-- Authentication redirect / connection failure -->
</body>
</html>
Since there is no official documentation available for Power BI and Bitbucket integration, I would like to know if anyone else has encountered this issue recently or if there are any updated steps/workarounds.
Solved! Go to Solution.
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.
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.
May I ask if you have resolved this issue? If so, Can you please share the resolution steps here. This will be helpful for other community members who have similar problems to solve it faster.
If we don’t hear back, we’ll go ahead and close this thread. For any further discussions or questions, please start a new thread in the Microsoft Fabric Community Forum we’ll be happy to assist.
Thank you for being part of the Microsoft Fabric Community.
Hi @KeerthanA_99,
We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.
Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
Hi @KeerthanA_99,
We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.
@Shahid12523 & @OktayPamuk80 thanks for your prompt response.
Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
The issue happens because Bitbucket no longer allows anonymous access.
To fix it, use authenticated access:
App Password: Create one in Bitbucket and use it with Power BI’s Web connector.
OAuth/Token: Use a personal access token if required.
Local clone: Pull the repo locally and connect Power BI to the files.
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 Keerthan,
From where are you connecting? Could it be that when it was working you connected from the company and later trying from Home-Office (or different location)?
Thanks for your response
Its the same issue, when the issue comes, it comes from office as well as home.
Thank you