Cfhttp uknown host, uknown error

Hey guys, I’m trying to interact with the IBM Watson API from Lucee 4 and
am running into a problem with .

https://lh3.googleusercontent.com/-TuQWKyXyDVo/V3HKjKWn1cI/AAAAAAABzsE/eN5c5i6eYWw8dPbKUZhi6UzivLC3c9KoACLcB/s1600/cfhttp1.png
Here is the code:

<cfhttpparam type=“header” name=“Authorization” value=“Basic #ToBase64(”
myusername:mypassword")#">

I can get a response via curl and via the browser (after I authenticate)
Any thoughts on how to best troubleshoot this?

Thanks,
Brian

What JRE version are you using? If Java 7 then try upgrading to 8.

This previous thread may also help:
https://groups.google.com/d/topic/lucee/vEzWtvzPl6Y/discussionOn 28 June 2016 at 01:57, Brian FitzGerald <@Brian_FitzGerald> wrote:

Hey guys, I’m trying to interact with the IBM Watson API from Lucee 4 and
am running into a problem with .

https://lh3.googleusercontent.com/-TuQWKyXyDVo/V3HKjKWn1cI/AAAAAAABzsE/eN5c5i6eYWw8dPbKUZhi6UzivLC3c9KoACLcB/s1600/cfhttp1.png
Here is the code:

<cfhttpparam type=“header” name=“Authorization” value=“Basic #ToBase64(”
myusername:mypassword")#">

I can get a response via curl and via the browser (after I authenticate)
Any thoughts on how to best troubleshoot this?

Thanks,
Brian


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/6c4b4ce5-48ec-45da-97d2-c304f702db16%40googlegroups.com
https://groups.google.com/d/msgid/lucee/6c4b4ce5-48ec-45da-97d2-c304f702db16%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Thanks Julian,

I am using the Lucee4 docker image
https://hub.docker.com/r/lucee/lucee4-nginx/ and was able to get this
resolved thanks to the help of Joe Gooch and Geoff Bowers. I don’t know how
to explain it particularly well, but basically it turned out the cacerts in
Lucee needed to be updated with the cacerts from the Java runtime on the
host operating system, as the Lucee cacerts are a bit out of date (or
something).

For future users of the Lucee Docker images, the good news is that it looks
like Joe and Geoff are working together to get this patch into the base
Lucee Docker images so future users (at least those using the Docker
images) won’t run into it.

Anyhow, thanks again Joe, Geoff and Julian!
BrianOn Tuesday, June 28, 2016 at 3:59:52 AM UTC-4, Julian Halliwell wrote:

What JRE version are you using? If Java 7 then try upgrading to 8.

This previous thread may also help:
https://groups.google.com/d/topic/lucee/vEzWtvzPl6Y/discussion

On 28 June 2016 at 01:57, Brian FitzGerald <bmfitz...@gmail.com <javascript:>> wrote:

Hey guys, I’m trying to interact with the IBM Watson API from Lucee 4 and
am running into a problem with .

https://lh3.googleusercontent.com/-TuQWKyXyDVo/V3HKjKWn1cI/AAAAAAABzsE/eN5c5i6eYWw8dPbKUZhi6UzivLC3c9KoACLcB/s1600/cfhttp1.png
Here is the code:

<cfhttpparam type=“header” name=“Authorization” value=“Basic #ToBase64(”
myusername:mypassword")#">

I can get a response via curl and via the browser (after I authenticate)
Any thoughts on how to best troubleshoot this?

Thanks,
Brian


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/6c4b4ce5-48ec-45da-97d2-c304f702db16%40googlegroups.com
https://groups.google.com/d/msgid/lucee/6c4b4ce5-48ec-45da-97d2-c304f702db16%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.