cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mabutho_joe
Frequent Visitor

Web.contents function with time out error

Hi There, 

 

I have a function that reads from Jira rest API that takes startAt and maxResults as arguments see below code in blue, problem is, if I add [Timeout=#duration(0,0,60,0)] it recognise this as a third argument and the function expect 2, without parameters code works very fine see code in pink, please help

(start as number, maxR as number) =>
let
Source = Json.Document(Web.Contents("https://aws-tools.standardbank.co.za/jira/rest/api/2/search?jql=issuetype%20in%20(epic,feature,spike...), maxResults=Number.ToText(maxR)]])),
issues = Source[issues]


in
issues

-------------------------------------------------------------------------------------------------------------------------------------------

let
Source = Json.Document(Web.Contents("https://aws-tools.standardbank.co.za/jira/rest/api/2/search?jql=issuetype%20in%20(epic,feature,spike...", [Timeout=#duration(0,0,60,0)])),
issues = Source[issues],

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.