Internal redirect for dataflow transactions at api.powerbi.com breaks api call

Doug Shawhan 96 Reputation points
2021-10-01T18:09:23.843+00:00

I'm attempting to discover when the refresh of a given dataflow has finished.

Using the instructions I keep getting a failure message (in the body of a 200, which is ... less than restful to my poor brain)

   2021-10-01 13:51:21,410 - RefreshDataflows - INFO - {'Message': "No HTTP resource was found that matches the request URI 'http://wabi-us-north-central-h-primary-redirect.analysis.windows.net/v1.0/myorg/groups/foo/dataflows/bar/transactions'."}  
   2021-10-01 13:51:21,411 - RefreshDataflows - INFO - https://api.powerbi.com/v1.0/myorg/groups/foo/dataflows/bar/transactions  

I have replaced the groupId and dataflowId values with "foo" and "bar", I have recreated the url using the "Focus mode" feature on the documentation page and get the expected response.

The first line is the decoded body of the response object (note the altered url), the second is the url that was passed to requests.

The available tags don't seem to have any focus on Power BI or it's REST api, so I really hope someone is searching deeply. :/

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
600 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,428 questions
{count} votes

Accepted answer
  1. Doug Shawhan 96 Reputation points
    2021-10-01T19:14:41.21+00:00

    The error was "hasty coder", I POSTed the request instead of GETting it.

    In my defense, it seems logical that a RESTful api should return a 405 when you send it the wrong method. So I declare from atop my high horse.

    0 comments No comments

0 additional answers

Sort by: Most helpful