Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Request Timed Out in exception.log even though the page runs to completion

Engaged ,
Aug 29, 2025 Aug 29, 2025

I have several templates in their own Application that I run as CF Scheduled Tasks. Each template has the same basic functionality - call a CFC to make a request to an external API via CFHTTP and save the data in the response to the database using SQL Stored Procedures. All of them run fine with no errors. However, every time just one of these templates is executed, a Request Timed Out message is logged in exception.log, even though the page does not time out and runs to completion:

 

"The request has exceeded the allowable time limit Tag: cfhttp"

 

I am logging each request to log the time it takes to complete and confirm that it completes successfully, and every request completes in about 15 seconds, which is expected.

 

I have added "setting requestTimeout=30;" the CFM template in an attempt to prevent the errors from being logged, but they still do, every time.

 

Any idea what is going on here? I know it's an innocuous error, but, I'd still like to get to the bottom of this.

 

CFM:

 

<cfscript>
setting requestTimeout=30;

import cfc.myData.widgetsUpdate;

LOCAL.widgetsUpdate=
    new widgetsUpdate();
LOCAL.widgetsUpdate
    .run();
</cfscript>

 

CFHTTP call:

component {
    private struct function apiRead() {
        cfhttp(
            url=LOCAL.myURL,
            method="GET",
            result="LOCAL.ApiHttpResult"
            ) {
            ....
        }
        
        return LOCAL.ApiHttpResult;
    }
}

 

39
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources