Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have been trying to integrate a request into one of my viusals and I'm having trouble getting it to work. I was hoping you might be able to help me out. I have a local server setup which I am requesting data from using a GET. I thought there might be a cross domain issue with the request, so I set up another local server and ran the same request from there and it worked.
The body of the request is this:
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
console.log(JSON.parse(xmlhttp.responseText))
}
};
xmlhttp.open("GET", "http://localhost:8090/vis_data?name&value", true);
xmlhttp.send();
The visual is running on port 8080, the data lives on port 8090, and to test the domain issues I ran the same request from port 8070, and it worked.
Can anyone help?
Thanks!
Solved! Go to Solution.
It turns out that the visual is being hosted on powerbi and not on localhost:8080, and from their server I can't query localhost. Upon replacing the url in local host to https://jsonplaceholder.typicode.com/todos/1 I get the desired result.
It turns out that the visual is being hosted on powerbi and not on localhost:8080, and from their server I can't query localhost. Upon replacing the url in local host to https://jsonplaceholder.typicode.com/todos/1 I get the desired result.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |