Skip to main content
Abdul Raheem - CN
Participant
July 19, 2023
Answered

CFHTTP weird behavior: the first request succeeds, but subsequent requests fail

  • July 19, 2023
  • 1 reply
  • 290 views

I encountered a strange situation with CFHTTP's behavior while attempting to validate coupon code requests and using the Stripe REST API. Strangely, the first request goes through successfully, but subsequent requests fail with the following error message: "I/O Exception: peer not authenticated."

 

I believe that the problem is not with the cert and even with the target URL, the problem is with the Coldfusion server, Does anyone have a similar experience or have the idea to fix this issue?

 

Here are the system specs. 

Server Product:    ColdFusion (2021 Release)
Version:    2021.0.08.330144
Tomcat Version:    9.0.60.0
Edition:    Enterprise
Operating System:    Windows Server 2016
OS Version:    10.0
Update Level:    C:/ColdFusion2021/cfusion/lib/updates/chf20210008.jar
Adobe Driver Version    5.1.4 (Build 0001)
Java Version    11.0.1

    This topic has been closed for replies.
    Correct answer Charlie Arehart

    That 11.0.1 Java is very old. (Sadly, it's what the very first installer for cf2021 came out with.) I am quite confident that updating that Java 11 to a newer update would fix this. That may well introduce other issues, but it's easy enough for you to try. For cf2021, you'd not want to use Java 17 or 20, but instead just that Java 11. And the latest update is 11.0.20, which came out yesterday. I have a blog post on that at, as I do for each Java or cf update, at carehart.org/blog. (In those, I discuss things to be aware of, not just that there's a new update.) 

     

    And I have another here on this general need sometimes to update java to fix such cfhttp problems.

     

    Hope all that's helpful. 

    1 reply

    Charlie Arehart
    Community Expert
    Charlie ArehartCommunity ExpertCorrect answer
    Community Expert
    July 19, 2023

    That 11.0.1 Java is very old. (Sadly, it's what the very first installer for cf2021 came out with.) I am quite confident that updating that Java 11 to a newer update would fix this. That may well introduce other issues, but it's easy enough for you to try. For cf2021, you'd not want to use Java 17 or 20, but instead just that Java 11. And the latest update is 11.0.20, which came out yesterday. I have a blog post on that at, as I do for each Java or cf update, at carehart.org/blog. (In those, I discuss things to be aware of, not just that there's a new update.) 

     

    And I have another here on this general need sometimes to update java to fix such cfhttp problems.

     

    Hope all that's helpful. 

    /Charlie (troubleshooter, carehart. org)
    Abdul Raheem - CN
    Participant
    July 27, 2023

    Thank you very much, Charlie. 

    I resolved the issue by updating the Java version. 

     

    Charlie Arehart
    Community Expert
    Community Expert
    July 27, 2023

    Great to hear, Abdul. Thanks for the update, and for marking an answer. I'll tweak it to add links with more. I was pressed for time the other day.

     

    Also, I'd mentioned 11.0.20 which had come out the day before. I've since learned of problems related to that, which some readers may want to consider. See a post I did the next day

    /Charlie (troubleshooter, carehart. org)