20 Jul 2023 09:04 AM - last edited on 02 Oct 2023 03:43 PM by AgataWlodarczyk
Is there any way to increase the timeout beyond 180 Sec from Private location? Our Application Page load is too slow.
Thanks
Solved! Go to Solution.
20 Jul 2023 10:01 AM
Hi,
Are you talking about a Browser clickpath event?
Best regards
20 Jul 2023 12:36 PM
No, 180s is the maximum timeout for Browser Monitor event. The only way to wait longer would be to use a timed event for the 1st event and then have a 2nd event after it that wait for whatever change you need to occur on the page to move on.
20 Jul 2023 04:15 PM
What about JS code? I could works maybe
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}async function demo() {
for (let i = 0; i < 5; i++) {
console.log(`Waiting ${i} seconds...`);
await sleep(i * 1000);
}
console.log('Done');
}demo();
21 Jul 2023 01:17 PM
How this code would help ? lets say i have a Button which is click on Next and need to wait until page is loaded which is taking 4 mins.
Thanks
21 Jul 2023 01:42 PM
step 1. click on button
step 2 in JS wait for 5 min and validate that you got some xpah/dom loaded, set assert
step3,4,5 next logic
27 Jul 2023 12:43 PM
This would not work as the hard timeout for an event (step) is 3 minutes)
21 Jul 2023 01:45 PM
BTW you are in private location, set desired timeout in config:
https://www.dynatrace.com/support/help/dynatrace-api/environment-api/synthetic-v2/synthetic-configur...
{
"bmMonitorTimeout": 1200000,
"bmStepTimeout": 240000
}
21 Jul 2023 01:49 PM
does Steptimeout allow more than 180 sec on private location?
21 Jul 2023 02:38 PM
there is my config above - 240 sec
21 Jul 2023 03:05 PM
getting an error with 240 , seems they have validation which wont allow beyond 180.
******************************************
"path": "bmStepTimeout",
"message": "Validation failed. Value out of range.",
21 Jul 2023 04:07 PM
You can ask support/CSM, maybe you have some restriction on account level
27 Jul 2023 12:45 PM - edited 27 Jul 2023 12:50 PM
180s hard timeout per event is a platform limit. I see that Slawa was able to increase it which is odd, as I cannot find any internal documentation referring that being allowed.
Please use the option I suggested where you break the wait across 2 events instead
27 Jul 2023 12:44 PM
180s is the maximum timeout for Browser Monitor event. The only way to wait longer would be to use a timed event for the 1st event and then have a 2nd event after it that wait for whatever change you need to occur on the page to move on.