Daniel Mejia
08/02/2022, 9:31 PMConnection Failure
always baffles me. I'm never sure what it means.Daniel Mejia
08/02/2022, 9:34 PMAdam Cameron
Adam Cameron
Daniel Mejia
08/02/2022, 9:37 PMAdam Cameron
cfhttp.status_code
or whatever it is.bdw429s
08/02/2022, 9:38 PMbdw429s
08/02/2022, 9:38 PMDaniel Mejia
08/02/2022, 9:38 PMStatus code unavailable
Adam Cameron
connection failure
in the response body... if the upstream server doesn't respond @ all?bdw429s
08/02/2022, 9:39 PMbdw429s
08/02/2022, 9:40 PMthrowonerror=true
to your cfhttp tag.Adam Cameron
bdw429s
08/02/2022, 9:40 PMbdw429s
08/02/2022, 9:40 PMbdw429s
08/02/2022, 9:40 PMAdam Cameron
bdw429s
08/02/2022, 9:41 PMDaniel Mejia
08/02/2022, 9:41 PMAdam Cameron
Adam Cameron
bdw429s
08/02/2022, 9:42 PMhow do I know what party is fault here?You don't really, it's sort of like a letter coming back as 'undelivered'. The connection could have broken down at any point in the internet starting with your severs's network adapter
Daniel Mejia
08/02/2022, 9:42 PMDaniel Mejia
08/02/2022, 9:43 PMAdam Cameron
Adam Cameron
bdw429s
08/02/2022, 9:43 PMDaniel Mejia
08/02/2022, 9:43 PMTim
08/02/2022, 9:44 PMDaniel Mejia
08/02/2022, 9:45 PMyou on cf2021?acf 2018
Tim
08/02/2022, 9:45 PMDaniel Mejia
08/02/2022, 9:46 PMDaniel Mejia
08/02/2022, 9:49 PMTim
08/02/2022, 9:49 PMTim
08/02/2022, 9:49 PMTim
08/02/2022, 9:50 PMDaniel Mejia
08/02/2022, 9:51 PM<https://service4.ultipro.com>
is not secure enough or expired??Adam Cameron
bdw429s
08/02/2022, 9:51 PMAdam Cameron
Adam Cameron
https://i2.paste.pics/19d96e9726d094b0b7e7a8de03c6082b.pngā¾
Adam Cameron
Adam Cameron
adam@DESKTOP-QV1A45U:~$ curl -v <https://service4.ultipro.com>
* Trying 208.86.169.145:443...
* TCP_NODELAY set
* Connected to <http://service4.ultipro.com|service4.ultipro.com> (208.86.169.145) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: C=US; ST=Florida; L=Weston; O=The Ultimate Software Group, Inc; CN=*.<http://ultipro.com|ultipro.com>
* start date: Dec 27 00:00:00 2021 GMT
* expire date: Jan 3 23:59:59 2023 GMT
* subjectAltName: host "<http://service4.ultipro.com|service4.ultipro.com>" matched cert's "*.<http://ultipro.com|ultipro.com>"
* issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS RSA SHA256 2020 CA1
* SSL certificate verify ok.
> GET / HTTP/1.1
> Host: <http://service4.ultipro.com|service4.ultipro.com>
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< Location: <https://connect.ultipro.com/documentation#/api>
< Date: Tue, 02 Aug 2022 21:56:26 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host <http://service4.ultipro.com|service4.ultipro.com> left intact
Daniel Mejia
08/02/2022, 9:59 PMDaniel Mejia
08/02/2022, 10:00 PMI/O Exception: Remote host terminated the handshake
Adam Cameron
bdw429s
08/02/2022, 10:01 PMRemote host terminated the handshakeThat usually happens when an SSL connection can't agree on what ciphers or TLS version to use
bdw429s
08/02/2022, 10:02 PMAdam Cameron
bdw429s
08/02/2022, 10:09 PMbdw429s
08/02/2022, 10:09 PM-Djavax.net.debug=ssl:handshake:verbose
Daniel Mejia
08/02/2022, 10:33 PMbdw429s
08/02/2022, 10:33 PMbdw429s
08/02/2022, 10:33 PMDaniel Mejia
08/02/2022, 10:34 PMbdw429s
08/02/2022, 10:41 PMseancorfield
http://
in all that output -- are you making http
requests or https
requests? Is that service expecting https
these days? A lot of services have been tightening up what type of connection they require and no longer allowing older, less secure connections even via https
.
When I try the connection Adam tried with http:
, it redirects to https:
(sort of as I would expect these days).
When I try it with https:
, I get the same output as Adam (ending in a redirect to the API documentation) but I would call out the negotiated SSL:
SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
⢠I have no idea what various versions of ACF support and I don't when JDK you're using. Both of those could factor into that.
You say some calls succeed and some fail -- from the same ACF server? With similar URLs? Or is there some pattern to what fails and what succeeds.
You'll need to dig deep into debugging this, probably by logging all requests (full URL) and seeing which ones fail and which ones succeed.Yogesh Lucid
08/03/2022, 6:49 AMmike42780
08/04/2022, 1:49 AM