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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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