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.
Hi ,
I am not able to connect to an API by sending request body.
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 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/aql
If Connect anonymously then my api will fail authentication.
Is there a problem with sending request body with api?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.