CFHTTP fails CF2018 Enterprise
- April 21, 2021
- 4 replies
- 4540 views
Currently my cfhttp process works for the API I am calling on CF10 Enterprise version running on Windows Server 2008R2 but, on my CF2018 editon it will run once (sometimes) and then fail every call after that. I applied update 10 when I first noticed the issue to see if that may help but it did not and I recently applied Update 11 with same results. I am running ColdFusion 2018 Enterprise Version: 2018.0.11.326016 on Windows Server 2016 Standard.
I then did as BKBK recommended in another post and installed latest Java from http://adobe.com/support/coldfusion/downloads.html which was 11.0.10 and pointed my jvm.config to the new Java home directory.
When I dump out value for the version using
<cfdump var="#server.system.properties.java.version#"> just to make sure, it does indeed show "11.0.10+8-LTS-162" is being used. I restarted both the server and ColdFusion service and still get this issue:
Another thing I tried was importing the SSL cert for the API site into the CF Certstore using Certman but since I am able to connect at least once I don't really think that is the issue, especially since I did not need to do that step on my CF10 version which is working.
Here is my cfhttp call:
<cfhttp method="GET" url="https://fleet.badger-technologies.com/api/web/v1/cleansweep?from=#fullStDtTime2#&to=#fullEndDtTime2#..." result="MartyData" throwonerror="yes" >
<cfhttpparam type="header" name="Authorization" value="Basic #ToBase64("myuser:pwd")#"/>
<cfhttpparam type="header" name="Content-Type" value="application/json; charset=utf-8" />
</cfhttp>
Kind of at a loss as to what to try next. Any further ideas or did I miss a step somewhere? Attached is the cfdump.
