Fetching 1 or more Months of Reports of multiple Groups of Devices

Josie Rizal2 years ago

I'm having a problem when retrieving the summary reports using the API endpoint 'reports/summary'. When I retrieve the report for a duration of 1 to 3 days, it is successful. However, when the time difference increases (let's say 1 week), it fails to fetch the data.

Anton Tananaev2 years ago

Does it timeout?

Josie Rizal2 years ago

Sometime it takes 15 mins to timeout on my Postman and giving back 503 error

Anton Tananaev2 years ago

And nothing in the payload or the logs?

Josie Rizal2 years ago

These are the details:

{
    "servlet": "org.glassfish.jersey.servlet.ServletContainer-53feeac9",
    "message": "Service Unavailable",
    "url": "/api/reports/summary",
    "status": "503"
}

503 Service Unavailable using Postman.

Josie Rizal2 years ago

My Server details:
OS: CentOS Stream 9
System: PowerEdge T30
CPU: Intel Xeon E3-1225 v5 @ 3.700GH
Memory: 8GB DDR4

Anton Tananaev2 years ago

My guess is there's some timeout.

Josie Rizal2 years ago

I already increased the timeout on my request but still no luck:

 $.ajax({
                url: '../process/process.php',
                type: 'POST',
                data: {
                    kilometers: true,
                    fromDateKilometers: from_date_converted,
                    toDateKilometers: to_date_converted,
                    timeout: 10000, // Set timeout to 10 seconds
                }
Anton Tananaev2 years ago

I'm talking about the backend timeout.

Josie Rizal2 years ago

How do we increase the backend timeout ?

Anton Tananaev2 years ago

I don't have an answer. You would have to do some research.