Forum Discussion
How to include header in the web data source?
I changed my way to get the content my request works in the below format,
When I covert it into Power BI query format
let
body="items.find({""repo"" : ""maven-prereleases-local""},{""@PL000003_RELEASE"" : {""$match"" : ""*17*""}}).include(""repo"",""path"",""name"",""created"",""updated"",""@PL000003_RELEASE"")",
Source = Json.Document(Web.Contents("https://artifactory.xyz.com/api/search/aql", Content=Text.ToBinary(body)))
in
Source
I get error as Expression.Error: The name 'Content' wasn't recognized. Make sure it's spelled correctly.
Why is that?
- belurrashmi8 years agoFrequent Visitor
After fixing the content value, I am getting error as
DataSource.Error: Web.Contents with the Content option is only supported when connecting anonymously.
Details:
DataSourceKind=Web
DataSourcePath=https://artifactory.xyz.com/api/search/aqlv-chuncz-msft do you have any thoughts on this issue.
making anonymous login will fail authentication from the api side
- v-chuncz-msft8 years agoCommunity Support
- belurrashmi8 years agoFrequent Visitor
As I mentioned earlier, after changing the authentication to anonymous login will fail authentication from the api side.