title: Power BI DataSource.Error: Web.Contents failed to get contents from url error?
body: <p>Recently my Power BI dashboard has started to return an error and I'm not sure why. Can anyone explain why it might have failed?</p>
  
  <p>The error I'm getting is:</p>
  
  <p><a href="https://i.stack.imgur.com/1ODif.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1ODif.png" alt="DataSource Error"></a></p>
  
  <p>The Advanced Query I'm using is:</p>
  
  <pre><code>let
      url = "http://&lt;domain&gt;:&lt;port&gt;/jderest/orchestrator/SEF_ORCH_V4211APBISalesDash",
      body = "{""deviceName"":""PowerBI"",""username"":""&lt;username&gt;"",""password"":""&lt;password&gt;""}",
      Source = Json.Document(Web.Contents(url, [Headers=[ContentType="application/json"],Content = Text.ToBinary(body)]))
  in
      Source
  </code></pre>
  
  <p>I'm not sure what's wrong with it. I tried running it via Soup UI with the above and it worked. </p>
  
  <p><a href="https://i.stack.imgur.com/ogPm2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ogPm2.png" alt="enter image description here"></a></p>
  
  <p>Can anyone explain why the Advanced Query is erroring?</p>