Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

I/O error while making calls to the PowerBi refresh API

I'm getting I/O error while making calls the to the powerbi refrsh api from my springboot app since yesterday and no changes in the application.   Is anyone faced this error?     splunk error -...
  • v-kpoloju-msft's avatar
    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.

  • ibarrau's avatar
    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,