I'm using `hyper` (in a stand-alone environment, w...
# box-products
s
I'm using
hyper
(in a stand-alone environment, without coldbox), version 5.0.1, and even the simplest request (
hyper.get("<https://www.google.com>")
) fails with a 504 Gateway Timeout. Any idea's on how this is possible?
s
does a regular
cfhttp()
to the same address work?
that's a pretty strange way for Hyper itself to fail, it has to be getting that 504 from somewhere
s
Regular `cfhttp`gives me
I/O Exception: java.lang.IllegalStateException: Could not derive keyFilecontentConnection FailureHeader[empty string]MimetypeUnable to determine MIME type of file.Responseheaderstruct [empty]StatuscodeConnection Failure. Status code unavailable.TextYES
(using commandbox btw) could this mean that the JDK i'm using for commandbox is too old (or the https cert of the site i'm calling too new) for it to handle the SSL cert?
s
It's definitely something with the JRE and not CF
if you can't even connect to google
s
But when I try to do an SSL poke (https://confluence.atlassian.com/kb/files/779355358/779355357/1/1441897666313/SSLPoke.class) to google.com using the same JRE, that works
s
which cf engine?
s
adobe 2016
s
I'd try a few other sites, both http and https. I haven't used Adobe CF in ages, but since you're in Commandbox I'd give it a go on a more current release of ACF or Lucee and see if the same thing happens. If it does, you know it's the JRE (or maybe ACF isn't using the JRE you think it is). If it doesn't, it's something in the Adobe engine
s
I'll look into it tomorrow. Thx for the advice @sknowlton
@sknowlton 2018 works, 2016 doesn't, not even with another custom java version set in my commandbox box.json / server.json.
But 2016 on our remote server DOES work.
The plot thickens.
s
🤷🏻‍♂️ 2016 was EOL a year ago so not super surprising. though I'd make sure it's actually using the java version you're specifying in cf admin. box.json doesn't get JRE settings, but I assume you did this https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/custom-java-version
s
Yes I did do that 🙂