Skip to main content
Participating Frequently
September 27, 2021
Answered

CFHTTP Issue with CF2021

  • September 27, 2021
  • 1 reply
  • 1749 views

Hello,

I have an strange issue on CF2021. The following code works in the first loop and afterwars fails with the message: "I/O Exception: Received fatal alert: handshake_failure. Connection Failure. Status code unavailable." Other targets like google.com e.g. work fine.

 

<cfloop from=1 to=10 index=i>
<cfset data_url = "https://www.cruiseportal.de">
<cfhttp url="#data_url#" method="GET" resolveurl="no" useragent="#cgi.http_user_agent#" timeout="50"></cfhttp>
<cfdump var="#cfhttp#">
</cfloop>

 

Any ideas? 

CF 2021.0.02.328618

Tomcat  9.0.50.0

JVM 11.0.1 

    This topic has been closed for replies.
    Correct answer BKBK

    I have an alternative suggestion for a solution: update the Java version from 11.0.1 to the latest recommended version for ColdFusion 2021, namely JAVA SE 11.0.12 (LTS)

     

    That's it. 

     

    Let us know if that works, too.


    I have just tested your exact same code on 

     

    ColdFusion 2021.0.02.328618

    JDK 11.0.12

     

    It works, as expected, without any need to specify the -Dhttps.protocols flag.

    1 reply

    Priyank Shrivastava.
    Community Manager
    Community Manager
    September 27, 2021

    Hi,

     

    I tried this and ran into the same issue, I added the SSL debugging and found there is an issue with TLS version. Can you add this in the jvm.config and restart CF and try again. Added the screenshot of my jvm arguments. After this the code worked. 

     

    -Dhttps.protocols=TLSv1.1,TLSv1,TLSv1.2

     

     

    Thanks, Priyank Shrivastava
    Participating Frequently
    September 27, 2021

    Hi Priyank,

    days of searching and getting crazy are over, thanks a lot for your help!

    BKBK
    Community Expert
    Community Expert
    September 27, 2021

    I have an alternative suggestion for a solution: update the Java version from 11.0.1 to the latest recommended version for ColdFusion 2021, namely JAVA SE 11.0.12 (LTS)

     

    That's it. 

     

    Let us know if that works, too.