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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Web.Contents failed to get contents from (405):

Hi ,

When trying to connect to an API, i am getting the above error in power bi desktop. Not sure what should be done to get data from the API. I am using basic authentication method. Any suggestion would help.

 

Thanks,

Priyanga

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

The 405 error normally means you are using some 'not allow' methods in these requests, perhaps you can change these parts of definitions in your data connector to fix this issue.

405 Method Not Allowed - HTTP | MDN (mozilla.org)
In addition, can you please share some more detail about the operations? I think they will help us clarify your scenario and troubleshoot.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Needs more details.  Are you calling a POST method where only GET is allowed?

v-shex-msft
Community Support
Community Support

Hi @Anonymous,

The 405 error normally means you are using some 'not allow' methods in these requests, perhaps you can change these parts of definitions in your data connector to fix this issue.

405 Method Not Allowed - HTTP | MDN (mozilla.org)
In addition, can you please share some more detail about the operations? I think they will help us clarify your scenario and troubleshoot.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Thanks @v-shex-msft , actually it was not an issue at all. I was using POST API instead of GET API.  Able to connect now.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.