We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I am trying to pull in data from predicthq.com. I'm not connected with this group other than as a data consumer.
Their webservice has a 308 redirect. From the docs I can see Web.Contents() has the required redirection logic for 300-307.
I've tried extending this function with a re-try request having no success - see below. Python works as does Postman.
Any workarounds for this? Using Python I've checked the history of the response and I can verify the 308 and the redirection to the final location which happens to be, annoyingly, the same uri as in my original request.
let req = () =>
let
uri = "https://api.predicthq.com",
utiResponse = Web.Contents(uri, [RelativePath="/v1/events",
Headers = [
#"Authorization" = "Bearer privatekey",
#"Accept" = "application/json"
],
ManualStatusHandling={308}
]),
finalResponse = Web.Contents(uri, [RelativePath="/v1/events",
Headers = [
#"Authorization" = "Bearer privatekey",
#"Accept" = "application/json"
],ManualStatusHandling={308}
])
,
body = Json.Document(finalResponse)
in body
in req
Thanks Maggie. This is a good article, I'll give it a go.
Lee
I couldn't get around this bug. It seems .net http doesn't handle 308 Redirects. Hence not a Power BI issue, moreover a .net issue.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |