This section specifies how to configure timeout setting for HTTP client.
Timeout setting specifies how long the HTTP client should wait for a response after sending an HTTP request. Increasing the timeout value can help avoid request failures when the HTTP request takes longer to respond.
Defaults and limits:
Add the IReportHelperSettings interface to the ReportingAPIController class as shown:
public class ReportingAPIController : Controller, IReportDesignerController, IReportHelperSettings
To Configure the timeout setting in the Bold Reports® Embedding application, add the following method to the ReportingAPIController.cs file:
// To Configure the timeout setting for designer and viewer
[NonAction]
public void InitializeSettings(ReportHelperSettings helperSettings)
{
helperSettings.DataOptions = new DataOptions { TimeOutInMinutes = "7" }; // Specify the needed timeout value in minutes
}If Bold Reports® Embedding application is deployed with a reverse proxy server, ensure proxy server’s timeout values are equal to or greater than the configured TimeOutInMinutes value. Otherwise, the server will terminate the connection before the HTTP request times out.
Nginx has default request timeout values (commonly around 60–300 seconds, depending on the directive). These timeouts should be adjusted based on application requirements to prevent unexpected client or upstream disconnections. Refer to the table below for recommended Nginx timeout configurations across different environments.
| Environment | File |
| Linux and Docker single-container | /etc/nginx/sites-enabled/default |
| Docker multiple-container | default.conf |
| Kubernetes (K8S) | Ingress.yaml |
proxy_connect_timeout {Desired time limit in seconds};
proxy_send_timeout {Desired time limit in seconds};
proxy_read_timeout {Desired time limit in seconds};
send_timeout {Desired time limit in seconds};
proxy_connect_timeout {Desired time limit in seconds};
proxy_send_timeout {Desired time limit in seconds};
proxy_read_timeout {Desired time limit in seconds};
If Bold Reports® Embedding application is deployed with a reverse proxy server other than Nginx, configure its equivalent timeout configuration properties (connection, send, and read) for that proxy server.
The following data connectors support timeout setting: