Questions tagged [timeout]

Timeout, in its essence, signifies a predetermined time span that must pass before an occurrence is scheduled. Additionally, timeout can also denote an incident unfolding subsequent to the lapse of a specified duration.

When employing Observables within Express Routing Middleware, setting headers may occur after they have already been transmitted

Working with Observable (specifically using Rxhttp) and connect-timeout to handle long running requests has been presenting a challenge. Despite hitting the error handling middleware, the .subscribe function continues to run, leading to errors like: Err ...

Stopping an AngularJS timeout from running

I have a multi-platform app created using AngularJS and Onsen/Monaca UI. In my app, I have a feature that detects button clicks and after a certain number of clicks, the user is directed to a confirmation screen. However, if the user takes too long to mak ...

How can I adjust the timeout or enhance my code for Excel Online's ExcelScript error regarding the Range getColumn function timing out?

I am struggling with a code that is supposed to scan through the "hello" sheet and remove any columns where the top cell contains the letter B: function main(workbook: ExcelScript.Workbook) { let ws = workbook.getWorksheet("hello"); let usedrange = ws ...

Look up and access the file

My latest script is designed to search for a specific file in the current directory. If it doesn't find the file, it will move up one directory and try again. The script functions properly when the file is found. However, if the file is not present, ...

Challenges with Selenium testing and network timeouts

My current automation tasks using selenium are encountering issues with flakiness due to network problems like slowness. This has led to numerous failed test cases, and re-running them is proving to be quite time-consuming. As a result, the efficiency of a ...

Discover the method for tracking idle time with jQuery and PHP

I have a script that utilizes PHP sessions through a custom class. One of the methods in this class calculates the remaining seconds before the session expires. Whenever the user refreshes the page or opens a new one, the idle time counter is reset using ...

Is there a way I can detect a browser timeout and display a custom error message?

My webpage in classic asp contains a link to a local IP address, shown below: <a href="http://192.168.1.89">Link</a> When the local IP address is not available, the web browser eventually times out and shows its own error message. I ...

What is the proper way to utilize setTimeout in TypeScript?

Let's take a look at an example of how to use setTimeout in Angular and TypeScript: let timer: number = setTimeout(() => { }, 2000); However, upon compilation, you may encounter the following error message: Error TS2322: Type 'Timeout' ...

Simply use `$timeout` inside the `$watch` method in AngularJS to create a chained

My goal is to link two $timeout functions inside a $watch. This $watch monitors user actions, and if any action is detected, both $timeout instances are canceled. Below is the code snippet outlining this scenario. .run(['$rootScope', '$location', '$timeo ...

Display a dropdown menu when hovering over with a delay

I recently created a basic navigation menu with dropdown functionality using CSS3 initially, but I decided to enhance it by incorporating jQuery to display the dropdown after a set timeframe. However, I am facing an issue where all dropdowns appear when ho ...

Establishing a connection using stream_socket_client that includes the ability to set

Looking at this block of PHP code: $fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx); The number '60' in the code represents a timeout for the connection establishm ...

What can be done to resolve the recurring issue of frequent timeouts in ajax requests?

Do you believe in the existence of special techniques that have prevented such incidents from occurring in Stack Overflow? ...

Creating a time restriction for the SFTP file transfer operation in the Paramiko module

Utilizing Paramiko's SFTP client, I am attempting to download a large file from a remote server to a client (specifically, a get operation). The file size is around 1GB and I want the get operation to timeout if it takes more than 10 seconds. However, set ...

Using jQuery to make hidden divs visible again

I have a group of products arranged side by side within a div, and I am using a script to hide them one by one. However, at a certain point, all the products have disappeared, and I am struggling to make them re-appear. I've attempted to use .show bu ...

AngularJS $http with a specific URL has a $timeout

Check out this code snippet: JavaScript: let timer; $scope.fetchDataFromApi = function(n){ let url = n; $http({ method: 'GET', url: url, }) .then(function successCallback(data) { ...

Tips for adjusting the node js request timeout in the core configuration or the default library of node js

Within the realm of node js, I discovered that the Socket Timeout default setting is Two Minutes, as stipulated in the documentation. In order to make modifications, I am seeking the specific location within the package where this code resides. Although I ...

What is the method for incorporating a timeout in a promise?

After exploring various methods for adding timeouts to promises, it appears that most rely on the setTimeout() function. Here is the formal definition: The setTimeout() function executes a specified function or evaluates an expression after a set number of ...

Getting around CloudFlare's 100-second time-out restriction

Seeking a solution to AJAX-enable my reports and circumvent the 100-second time-out constraint enforced by CloudFlare for requests passing through its platform. For more information, visit Is it possible to increase CloudFlare time-out? The implementatio ...