Forum Discussion
I/O error while making calls to the PowerBi refresh API
- 1 year ago
Hi Anonymous,
Thank you for posting your query in Microsoft Fabric Community Forum. Here I provided some points those might be resovle the issue more quickly.
Based on your error message, it looks like your Spring Boot app is encountering a connectivity issue while trying to make a GET request to the Power BI REST API. The I/O error suggests a problem with network communication or incorrect URL formatting. Please double-check the following:- Verify there is no space or malformed characters in the dataset/refresh URL.
- Ensure your server can still reach api.powerbi.com (check network, DNS, and proxy settings).
- Confirm that the OAuth token you are using is valid and not expired.
- Look into any recent outages on Microsoft's service health page.
Adding better error logging and retry logic in your app can also help identify whether it’s a transient issue or something persistent. Let us know what you find, and we can dig deeper if needed.
Let me know if you would like a mock code snippet or sample token refresh logic as well.
Hope this helps clarify things and let me know what you find after giving these steps a try happy to help you investigate this further.
Thank you for using the Microsoft Community Forum. - 1 year ago
Hi. The API works ok. Make sure to check you have all permissions and setups correctly. You can check it in this tutorial: https://blog.ladataweb.com.ar/post/740398550344728576/seteo-powerbi-rest-api-por-primera-vez
Then, you can use libraries to make it easier like simplepbi for python, but if you want to just code it yourself, pay attention to the request. The URL you have right there doesn't exist. There is no request that will use "names". Group name or dataset name is something you will never use. The API URL works with IDs. The same UUIDs you can find at the Power Bi Service URL.
I hope that helps,
Hi Anonymous,
Thank you for posting your query in Microsoft Fabric Community Forum. Here I provided some points those might be resovle the issue more quickly.
Based on your error message, it looks like your Spring Boot app is encountering a connectivity issue while trying to make a GET request to the Power BI REST API. The I/O error suggests a problem with network communication or incorrect URL formatting. Please double-check the following:
- Verify there is no space or malformed characters in the dataset/refresh URL.
- Ensure your server can still reach api.powerbi.com (check network, DNS, and proxy settings).
- Confirm that the OAuth token you are using is valid and not expired.
- Look into any recent outages on Microsoft's service health page.
Adding better error logging and retry logic in your app can also help identify whether it’s a transient issue or something persistent. Let us know what you find, and we can dig deeper if needed.
Let me know if you would like a mock code snippet or sample token refresh logic as well.
Hope this helps clarify things and let me know what you find after giving these steps a try happy to help you investigate this further.
Thank you for using the Microsoft Community Forum.
Hi Anonymous,
Just checking in to see if the issue has been resolved on your end. If the earlier suggestions helped, that’s great to hear! And if you’re still facing challenges, feel free to share more details happy to assist further.
Thank you.
- v-kpoloju-msft1 year agoCommunity Support
Hi Anonymous,
Hope you had a chance to try out the solution shared earlier. Let us know if anything needs further clarification or if there's an update from your side always here to help.Thank you.
- v-kpoloju-msft1 year agoCommunity Support
Hi Anonymous,
Just wanted to follow up one last time. If the shared guidance worked for you, that’s wonderful hopefully it also helps others looking for similar answers. If there’s anything else you'd like to explore or clarify, don’t hesitate to reach out.Thank you.