We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e71f63e commit a8138f0Copy full SHA for a8138f0
app/templates/index.html
@@ -335,6 +335,7 @@ <h2>Ask Defang</h2>
335
readStream();
336
})
337
.catch(error => {
338
+ clearTimeout(timeoutId); // Clear timeout if request fails
339
if (error.name === 'AbortError') {
340
assistantResponse.textContent = 'Request timed out. Please try again in a moment.';
341
console.error('Request timed out. Error: ', error);
0 commit comments