Forum Discussion
purple_banana
3 years agoFrequent Visitor
Adding Timeout to a Web.Contents Dataflow query
I have the following query which works, however the API is very slow, and if I try to increase the date range it times out: Json.Document(Web.Contents("https://<source>/api/v2/",[RelativePath="a...
- 3 years ago
Json.Document(Web.Contents("https:///api/v2/",[RelativePath="analytics-stream?startDate=" & Date.ToText(RangeStart, "yyyy-MM-dd") & "&endDate=" & Date.ToText(RangeEnd, "yyyy-MM-dd") &"&code=01",Timeout=#duration(0, 0, 30, 0)]))
lbendlin
3 years agoSuper User
Json.Document(Web.Contents("https:///api/v2/",[RelativePath="analytics-stream?startDate=" & Date.ToText(RangeStart, "yyyy-MM-dd") & "&endDate=" & Date.ToText(RangeEnd, "yyyy-MM-dd") &"&code=01",Timeout=#duration(0, 0, 30, 0)]))
- purple_banana3 years agoFrequent Visitor
**bleep** I was close 😂
Thank you!