RE: Timeout in CFHTTP
Is it the remote request or your own page timing out? Adrian -Original Message- From: Glyn Jackson [mailto:glyn.jack...@newebia.co.uk] Sent: 06 February 2009 16:31 To: cf-talk Subject: Timeout in CFHTTP Hi all, Having some problems with trying to catch an error when my http post times out. I have followed the livedocs and included a try and catch statement however when it times out I get an white page with error 500 tag exceeded etc I assumed that a try statement would overrule any error system CF had in place. how can I solve this? thanks :) what i am using is below... cftry cfhttp method=get url=http://www.somedomainhere.com; throwonerror=yes resolveurl=no timeout=200 cfhttpparam type=Formfield value=#CartItems# name=CartItems cfhttpparam type=Formfield value=#GetCustomer.name# name=name cfhttpparam type=Formfield value=#GetCustomer.company# name=company cfhttpparam type=Formfield value=#GetCustomer.address1# name=address1 cfhttpparam type=Formfield value=#GetCustomer.address2# name=address2 cfhttpparam type=Formfield value=#GetCustomer.address3# name=address3 cfhttpparam type=Formfield value=#GetCustomer.city# name=city cfhttpparam type=Formfield value=#GetCustomer.county# name=county cfhttpparam type=Formfield value=#GetCustomer.post_code# name=post_code cfhttpparam type=Formfield value=#GetCustomer.county# name=county cfhttpparam type=Formfield value=#GetCustomer.tel# name=tel cfhttpparam type=Formfield value=#GetCustomer.fax# name=fax cfhttpparam type=Formfield value=#GetCustomer.mobile# name=mobile cfhttpparam type=Formfield value=#GetCustomer.email# name=email /cfhttp cfcatch type=any pcustom time out message/p /cfcatch /cftry ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318977 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Timeout in CFHTTP
sure it is cfhttp timing out or maybe it's your page that does? try adding cfsetting requesttimeout=300 at the top of your page. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Glyn Jackson wrote: Hi all, Having some problems with trying to catch an error when my http post times out. I have followed the livedocs and included a try and catch statement however when it times out I get an white page with error 500 tag exceeded etc I assumed that a try statement would overrule any error system CF had in place. how can I solve this? thanks :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318978 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Timeout in CFHTTP
Note that Cfhhtp's timeout is in seconds, CF's requesttimeout is in milliseconds. Adrian -Original Message- From: Azadi Saryev [mailto:az...@sabai-dee.com] Sent: 06 February 2009 16:45 To: cf-talk Subject: Re: Timeout in CFHTTP sure it is cfhttp timing out or maybe it's your page that does? try adding cfsetting requesttimeout=300 at the top of your page. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Glyn Jackson wrote: Hi all, Having some problems with trying to catch an error when my http post times out. I have followed the livedocs and included a try and catch statement however when it times out I get an white page with error 500 tag exceeded etc I assumed that a try statement would overrule any error system CF had in place. how can I solve this? thanks :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318979 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Timeout in CFHTTP
I put it to a high 200 seconds on a url I knew would time out, however I get the error after around 30 seconds so its just ignoring the timeout on the CFHTTP call. does requesttimeout come before? which takes precedence? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318982 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Timeout in CFHTTP
are you sure, Adrian? the docs (cfml reference) say: requestTimeout: Optional integer; *number of seconds*. Time limit, after which ColdFusion processes the page as an unresponsive thread. Overrides the time-out set in the ColdFusion Administrator. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Adrian Lynch wrote: Note that Cfhhtp's timeout is in seconds, CF's requesttimeout is in milliseconds. Adrian ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318983 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Timeout in CFHTTP
Ermm, I was sure, but now I'm not! Just looked at the docs, you're right. I think I might have to revisit some code now! :O. Adrian -Original Message- From: Azadi Saryev [mailto:az...@sabai-dee.com] Sent: 06 February 2009 17:21 To: cf-talk Subject: Re: Timeout in CFHTTP are you sure, Adrian? the docs (cfml reference) say: requestTimeout: Optional integer; *number of seconds*. Time limit, after which ColdFusion processes the page as an unresponsive thread. Overrides the time-out set in the ColdFusion Administrator. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Adrian Lynch wrote: Note that Cfhhtp's timeout is in seconds, CF's requesttimeout is in milliseconds. Adrian ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318984 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Timeout for cfhttp
Could try a named cflock? Dunno if that would work though, worth a try? -Original Message- From: A.Little [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 09:59 To: CF-Talk Subject: Timeout for cfhttp Hi all, I'm using cfhttp in CFMX, and according to the docs the 'timeout' attribute doesn't function with JDK 1.3 (which is what I'm using) so occassionally the page just hangs indefinitely. Is there some code I could put around the cfhttp tag which will replace the function of the timeout attribute? I was looking at using something like cftry timeout=123, but cftry doesn't have a timeout ... or any other ideas? thanks, Alex ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4