This is for NAV 2018 up to CU04 (build 21441), on premises
I have been having a problem that I thought related to the HttpClient type but appears to be a time out problem. I have increased all the timeouts in the service's customsettings.config file and the default timeout in the navsettings.json file is 20 minutes. However my process times out right about 2 minutes.
I have a process that calls a web service (REST) repeatedly to download data and it takes about 2.5 minutes to do so in C/AL and the AL code fails every time.
What is timing out?
What do I need to change to extend the timeout?
The code below duplicates the problem.
pageextension 50100 CustomerListExt extends "Customer List"
{
trigger OnOpenPage();
begin
//Message('App published: Hello world');
if Confirm('Run test?', false) then begin
TestTimeOut();
end;
end;
procedure TestTimeOut();
var
startTime: DateTime;
endTime: DateTime;
Window: Dialog;
begin
Window.Open('Elapsed time: #1#############################');
startTime := CurrentDateTime;
while true do begin
sleep(10000); //10 seconds
endTime := CurrentDateTime;
Window.Update(1, endTime - startTime);
end;
end;
}
*This post is locked for comments
I have the same question (0)