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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
danielmillion
Frequent Visitor

Web API - Power BI keeps asking for credentials, yet does not seem to refresh

Hello, 

 

I have been using API data source for a few months now, but in the last week i am getting an error 

stating power bi cant authenticate the credentials given for the API source which is Anonymous.

My API code : 

 

let

url = "#######################################",
Content = "{
""DateTimeFromUTC"" : ""2019/01/01 00:00:00"",
""DateTimeToUTC"" : ""2019/03/31 23:59:59""
}
",

Source = Json.Document(Web.Contents(url,[Headers =[#"Content-Type"="application/json", #"AUTH_TOKEN" = "#################"],Content = Text.ToBinary(Content) , Timeout=#duration(0,2,0,0)
]
))

 

in
Source

 

Any Suggestions ? 

0 REPLIES 0

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.