Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17880

Power BI Rest API Error

$
0
0

Hi All,

 

I have problem in posting data to REST API using the python3, part of the script below

 

REST_API_URL = "https://api.powerbi.com/beta/93fc8b07-5b2f-4a23-ae62-844e9ba4e216/datasets/83bc213e-1fa1-4264-ae43-39a88fdbdd93/rows?key=o4owv8NDQVFxVE6MUjf0oCXOrGomEHIgbClSRm3ao%2FfTnnDefPLpJMbK6owk%2FkPmMPymnEA8SrG0KfPSNMp5gg%3D%3D"
data ='[{{ "extraction_datetime": "2017-11-11 00:00:00", "location": "Bayombong", "rainfall": "0" }}]'
data=data.encode('utf-8')

req=urllib.reqeust.Request(REST_API_URL,data)
response=urllib.request.urlopen(req)

At first it works fine and my dashboard working really well. After few days (started last November 10) I got a problem HTTP Error 404: Not Found (when executing the main script). 

 

Please help.

Thanks in advance.


Viewing all articles
Browse latest Browse all 17880

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>