• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFHTTP "Connection Failure"

New Here ,
Sep 20, 2012 Sep 20, 2012

Copy link to clipboard

Copied

Hello,

We're attempting to connect to an xml feed using some CFHTTP code that has been working for some time. We moved to a new CF10 server and have started running into issue, now persistenly, where we receive a "connection failure" response.

I took a look at several related postings and added a number of cfhttpparam's as follows:

<cfhttpparam type="header" name="Accept-Encoding" value="*" />

<cfhttpparam type="Header" name="TE" value="deflate;q=0">

<cfhttpparam type="header" name="accept-encoding" value="no-compression" />

<cfhttpparam type="header" name="accept-encoding" value="deflate;q=0?">

<cfhttpparam type="header" name="te" value="deflate;q=0?">

No combination of the above has worked. i tried a CFdump and got this result:

struct
Charset[empty string]
ErrorDetailI/O Exception: Permission denied: connect
FilecontentConnection Failure
Header[empty string]
MimetypeUnable to determine MIME type of file.
Responseheader
struct [empty]
StatuscodeConnection Failure. Status code unavailable.
TextYES

Does anyone have some suggestions?

TOPICS
Connector

Views

7.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 20, 2012 Sep 20, 2012

Copy link to clipboard

Copied

It's an HTTPS URL you're hitting, right? 

It is likely a certificate issue.

The certificate chain for that site was probably already loaded into the certificate store for your previous install, then when you installed CF10 you got a new JVM with a new cert store. You' ll probably need to import the cert chain again.

Instructions: http://helpx.adobe.com/coldfusion/kb/import-certificates-certificate-stores-coldfusion.html

You'll need to figure out where your cacerts file is, and your keytool executable. But after you do that, the instructions should be the same.

Jason

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2012 Sep 20, 2012

Copy link to clipboard

Copied

its not, its HTTP. I also forgot to mention that hitting the url in a browser produces xml as it should.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 20, 2012 Sep 20, 2012

Copy link to clipboard

Copied

If it is not SSL then my only thoughts are firewall or DNS issues.  Did you hit it from a browser on the same machine as the CF server that is having trouble?

Jason

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2012 Sep 20, 2012

Copy link to clipboard

Copied

i am unable to use a browser to hit external sites for security reasons, so hard to check on that. We do hit other services without issue. Are there settings in the CFadministrator that i should check?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 20, 2012 Sep 20, 2012

Copy link to clipboard

Copied

Can you ping the site in question?  Even if the site does not respond to ping, the question I am wondering if can you resolve the IP of the site on a ping?

jason

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2012 Sep 20, 2012

Copy link to clipboard

Copied

LATEST

the domain resolved on a ping, but i had 100% packet loss. i'm starting to think this is firewall.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation