Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Kieran
Advocate II
Advocate II

Can Connect to Elasticsearch using Edge and Internet Explorer but not Using Power BI

Hi,

I am able to successfully connect to a data feed using ...

Myurl.com/_stats

 

UserName: MyUserName

Password: MyPassword

 

Whilst using Internet Explorer or Edge.

 

However within Power BI Desktop when I try and make the same connection using the following selections  ...

1) Select "Get Data",

2) Select "Other",

3) Select "Web",

4) Url set to Myurl.com/_stats

5) Select Authentication type "Basic"

6)

UserName: MyUserName

Password: MyPassword

 

I then receive the error message "We couldn't authenticate with the credentials provided. Please try again."

 

Can anyone help please ?

 

Kind Regards,

 

Kieran

 

5 REPLIES 5
mwegener
Most Valuable Professional
Most Valuable Professional

Hi,

 

maybe the site use authentication with oAuth 2.0.

 

This blog post describe a connection to twitter with oAuth2.0

https://chris.koester.io/index.php/2015/07/16/get-data-from-twitter-api-with-power-query/

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


To use oAuth2.0 I believe you may need to make changes in the configurations to the data source in my scenario. For example provision of a key / token. So to give you more background I am attempting to connect to Elasticsearch by following the link ...

https://blog.sixeyed.com/querying-elasticsearch-with-powerbi/

 

I have no means of changing the configuration of the Elasticsearch data source I am querying, just the connection in Power BI / Power Query.

 

I estimate that my most beneficial course of research is attempting to find why my credentials work in the browser but they don't work within Basic authentication within Power BI as stated in my initial question.

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Kieran

 

maybe you can use the Edge DevTools to see, how the authentication is send thru the request.

https://docs.microsoft.com/en-us/microsoft-edge/devtools-guide/network

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


After further investigtion ...

 

This issue in my client's environment that they have a proxy server for internet access.

 

Power BI Desktop does not support proxies...

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/20393473-support-proxy-authentica...

 

So this was how I managed to authenticate to Elasticsearch through my browsers but not through Power BI desktop.

 

I have negociated a work around with my client in that I now have a privilege account which accesses the internet directly and not through a proxy.

 

However longer term Power BI needs to support proxies.

 

Hi @Kieran,

 

I would suggest you contact the administrator of your site. I have browsed this document and found nothing related to authentication.

Did you try the Anonymous authentication method? It worked in my test. Please refer to the snapshot below.

Is it an on-premise server or a cloud service?

Can-Connect-using-Edge-and-Internet-Explorer-but-not-Using-Power-BI

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors