Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add Error message flag to ajax timeout

Kevin Dalton
Contributor
September 10, 2021
<script>
AJS.$.ajaxSetup({
	timeout: 20000 // Milliseconds, 60 seconds in this example.
});
</script>

We are looking to change the default timeout on our instances but would like an error message defined so associates know why they have an error. 

1 answer

0 votes
Nir Haimov
Community Champion
September 12, 2021

You can use this solution:

https://stackoverflow.com/questions/16933377/jquery-ajax-global-timeout-entire-application-im-using-get-post-cant-u/16933563

in the ajaxError handler, you can use the following to popup error in Jira UI

AJS.flag({
type: "error",
body: "Request Time Out!",
close: "auto"
});

Suggest an answer

Log in or Sign up to answer