Conga error 1111

General APL language issues

Conga error 1111

Postby crishog on Sat Nov 18, 2017 12:32 pm

We have a small application which reads links out of emails & then interrogates the web pages referred to.

Currently it uses some .Net calls, but a few have begun to fail or take an excessive amount of time to complete (for no reason I can determine) so I'm trying to convert to Conga.

When it works it is much easier & faster (thanks Bjørn!) but I've got an odd problem. Take this url: https://www.totaljobs.com/jobsearch/ema ... p;search=1 (not a job I'm applying for, but an example of a failure).

This example redirects to another web page, but what happens is that Conga returns an error "Client creation failed 1111 ERR_CONNECT_DATA Could not connect to host data port" - it is not the site as such, because I can reach the redirect page if I plug that url into the call & other pages on the site are accessible.

Some subsequent calls work but can also give "Client creation failed 1205 ERR_NO_SSL_SUPPORT No SSL support in this build of the conga DLL" - which patently isn't quite true as it works happily for most previous https calls.

This is using the new Httpcommand.dyalog - Do I have to set something else to get this going? It the page particularly troublesome or am I just being thick?
crishog
 
Posts: 55
Joined: Mon Jan 25, 2010 9:52 am

Re: Conga error 1111

Postby woody on Sun Nov 19, 2017 4:40 pm

If the HTTP(s) call returns a 302 Redirect .. then use that result to make a 2nd call to the redirect URL.

https://en.wikipedia.org/wiki/HTTP_302

Also, I have experimented using MiServer (V2.x) with calls to CURL (.exe) on the windows server calling the target HTTP(s) server on the back-end.

It took some time ... but I was able to write some APL that retrieved an HTML page, parse, edit, and re-present the content (screen scrape). Could easily store content and links, if needed.

http://educated.world

I'm sure CONGA can return the same results as CURL ...

FYI
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 132
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Re: Conga error 1111

Postby crishog on Mon Nov 20, 2017 2:14 pm

The thing is that I don't get a 302 - just 1111 so I've no headers to pull the redirection from.

I can't see anything wrong with the URL itself & it resolves if copied into a browser's address bar.

I'm wondering to I have to set something to tell Conga to follow any redirections?
crishog
 
Posts: 55
Joined: Mon Jan 25, 2010 9:52 am

Re: Conga error 1111

Postby Brian|Dyalog on Mon Nov 20, 2017 8:09 pm

Hi Chris,

I've had a look and found that we weren't handling some instances of redirection properly in HttpCommand. Essentially, if the redirected URL was relative to the original URL, the wheels fell off the bus. I've updated HttpCommand to address this. I also added a "Redirections" element to the result namespace that will contain a list of the redirected URLs leading to the final landing spot. The updated HttpCommand can be found at https://raw.githubusercontent.com/Dyalog/library-conga/master/HttpCommand.dyalog

I hope this helps!
/Brian
User avatar
Brian|Dyalog
 
Posts: 109
Joined: Thu Nov 26, 2009 4:02 pm
Location: West Henrietta, NY

Re: Conga error 1111

Postby crishog on Tue Nov 21, 2017 8:49 am

Brian as ever, you are a star!
crishog
 
Posts: 55
Joined: Mon Jan 25, 2010 9:52 am


Return to Language

Who is online

Users browsing this forum: No registered users and 1 guest