[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Web server connection mostly times out - except when I step though the API with debug.
/tmp/httpapi_debug.txt Is this what you want? Most is the detail of the successful call to the fixed URL. There's not so much to see about the call that times out:
HTTPAPI Ver 1.29 released 2015-02-23
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V6R1M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: SKYTV.CO.NZ
DNS server found: 192.168.196.46
Nagle's algorithm (TCP_NODELAY) disabled.
(GSKit) Identifier value is not valid.
ssl_error(701): (GSKit) Identifier value is not valid.
SNI hostname error: (GSKit) Identifier value is not valid.
Colin Grierson | Development Consultant
Systems Advisory Services Ltd
520 Great South Road, Greenlane, Auckland, New Zealand | PO Box 17-268 Greenlane
Phone +64 9 525 7353 | DDI +64 9 580 8745 | Email Colin.Grierson@xxxxxxxxxxx
We integrate, develop, manage and maintain mission critical systems
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 0
-----BEGIN CERTIFICATE-----
MIIFSTCCBDGgAwIBAgIQBMlA4ibdU0jpYqERYLZU4jANBgkqhkiG9w0BAQUFADCB
vDELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL
ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTswOQYDVQQLEzJUZXJtcyBvZiB1c2Ug
YXQgaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYSAoYykxMDE2MDQGA1UEAxMt
VmVyaVNpZ24gQ2xhc3MgMyBJbnRlcm5hdGlvbmFsIFNlcnZlciBDQSAtIEczMB4X
DTE0MTAzMTAwMDAwMFoXDTE1MTEwMTIzNTk1OVowgYgxCzAJBgNVBAYTAlVTMRMw
EQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHFA1TYW4gRnJhbmNpc2N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dHRwOi8vc2Uuc3ltY2IuY29tL3NlLmNydDANBgkqhkiG9w0BAQUFAAOCAQEADG8T
387Dk0k+W1gQShQRaPPd++VfsTkYhn/hxTLcE5m0+CTSFXPw1/icz8UtAPqhZl7B
FwMgYtO5ythBrD4zuB43/S2hEJeeKOgrJE9jbk1qRXfqgRgM00j5iLiSkFjn5EwN
Thl7cQEJs/0W4b8B6QeC21MYzhIKLpYQE8B45aS5zeajoPY7xKGCv/9me8kt9Nqr
EQOQ/nAra78AB6EvN0ryekCd1yoP3wvvhHZBFEYI3GWokFxmQ4xvX+niMFGzrBJ/
oVe/NnA57VPKrvqq8cOj+9qw6vsDm0DAUbcBw+haIhqTP/12q4K/vsciWsynMEvT
tV/s51sdrwWDM8ToOQ==
-----END CERTIFICATE-----
Serial Number: 04:C9:40:E2:26:DD:53:48:E9:62:A1:11:60:B6:54:E2
Common Name: test.salesforce.com
Country: US
State/Province: California
Locality: San Francisco
Org Unit: Salesforce.com, Inc
Org: Network
Issuer CN: VeriSign Class 3 International Server CA - G3
Issuer Country: US
Issuer Org: VeriSign, Inc.
Issuer Org Unit: Terms of use at https://www.verisign.com/rpa (c)10, OU=VeriSign Trust Network
Version: 03
not before: 20141031130000
not after: 20151102125959
pub key alg: 1.2.840.113549.1.1.5
Protocol Used: TLS Version 1.0
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
There are 1 cookies in the cache
POST /services/Soap/u/33.0 HTTP/1.1
Host: test.salesforce.com
User-Agent: http-api/1.29
Content-Type: text/xml
SOAPAction: login
Content-Length: 401
Cookie: $Version=0; BrowserId=BFVUYdepSwClCs9KeyoCxg; $Path=/; $Domain=.salesforce.com;
senddoc(): entered
senddoc(): entered
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><login xmlns="urn:partner.soap.sforce.com"><username>XXXXXXXX</username><password>YYYYYYYYYY</password></login></env:Body></env:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Date: Thu, 23 Apr 2015 00:23:05 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 1708
SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 1708
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><loginResponse><result><metadataServerUrl>https://cs14.salesforce.com/services/Soap/m/33.0/00Dc0000003usuZ</metadataServerUrl><passwordExpired>false</passwordExpired><sandbox>true</sandbox><serverUrl>https://cs14.salesforce.com/services/Soap/u/33.0/00Dc0000003usuZ</serverUrl><sessionId>00Dc0000003usuZ!AREAQLn4GumHecKyV7lY0Q3sqyqEWNuuP2YRYJBR7blgYn8kMiSHJOM3dBwQG6OTkspELVNTP.F.3zUrQkSAXK.oXslasBgG</sessionId><userId>005c0000001iB8EAAU</userId><userInfo><accessibilityMode>false</accessibilityMode><currencySymbol>$</currencySymbol><orgAttachmentFileSizeLimit>5242880</orgAttachmentFileSizeLimit><orgDefaultCurrencyIsoCode>NZD</orgDefaultCurrencyIsoCode><orgDisallowHtmlAttachments>false</orgDisallowHtmlAttachments><orgHasPersonAccounts>true</orgHasPersonAccounts><organizationId>00Dc0000003usuZEAQ</organizationId><organizationMultiCurrency>false</organizationMultiCurrency><organizationName>Vodafone</organizationName><profileId>00e20000000vsGOAAY</profileId><roleId>00E20000000rmf2EAA</roleId><sessionSecondsValid>43200</sessionSecondsValid><userDefaultCurrencyIsoCode xsi:nil="true"/><userEmail>sclayton@xxxxxxxxxxx</userEmail><userFullName>Sky Referral</userFullName><userId>005c0000001iB8EAAU</userId><userLanguage>en_US</userLanguage><userLocale>en_NZ</userLocale><userName>sclayton@xxxxxxxxxxx</userName><userTimeZone>Pacific/Auckland</userTimeZone><userType>Standard</userType><userUiSkin>Theme3</userUiSkin></userInfo></result></loginResponse></soapenv:Body></soapenv:Envelope>
http_close(): entered
HTTPAPI Ver 1.29 released 2015-02-23
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V6R1M0
http_persist_open(): entered
http_long_ParseURL(): entered
Date: Thu, 23 Apr 2015 00:23:05 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 1708
SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 1708
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><loginResponse><result><metadataServerUrl>https://cs14.salesforce.com/services/Soap/m/33.0/00Dc0000003usuZ</metadataServerUrl><passwordExpired>false</passwordExpired><sandbox>true</sandbox><serverUrl>https://cs14.salesforce.com/services/Soap/u/33.0/00Dc0000003usuZ</serverUrl><sessionId>00Dc0000003usuZ!AREAQLn4GumHecKyV7lY0Q3sqyqEWNuuP2YRYJBR7blgYn8kMiSHJOM3dBwQG6OTkspELVNTP.F.3zUrQkSAXK.oXslasBgG</sessionId><userId>005c0000001iB8EAAU</userId><userInfo><accessibilityMode>false</accessibilityMode><currencySymbol>$</currencySymbol><orgAttachmentFileSizeLimit>5242880</orgAttachmentFileSizeLimit><orgDefaultCurrencyIsoCode>NZD</orgDefaultCurrencyIsoCode><orgDisallowHtmlAttachments>false</orgDisallowHtmlAttachments><orgHasPersonAccounts>true</orgHasPersonAccounts><organizationId>00Dc0000003usuZEAQ</organizationId><organizationMultiCurrency>false</organizationMultiCurrency><organizationName>Vodafone</organizationName><profileId>00e20000000vsGOAAY</profileId><roleId>00E20000000rmf2EAA</roleId><sessionSecondsValid>43200</sessionSecondsValid><userDefaultCurrencyIsoCode xsi:nil="true"/><userEmail>sclayton@xxxxxxxxxxx</userEmail><userFullName>Sky Referral</userFullName><userId>005c0000001iB8EAAU</userId><userLanguage>en_US</userLanguage><userLocale>en_NZ</userLocale><userName>sclayton@xxxxxxxxxxx</userName><userTimeZone>Pacific/Auckland</userTimeZone><userType>Standard</userType><userUiSkin>Theme3</userUiSkin></userInfo></result></loginResponse></soapenv:Body></soapenv:Envelope>
http_close(): entered
// Here is the start of the call that times out. The url is https://cs14.salesforce.com/services/Soap/u/33.0/00Dc0000003usuZ - specified in the data returned on the first call.
// It does not always time out... But it either connects quickly or totally fails
HTTPAPI Ver 1.29 released 2015-02-23
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V6R1M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: SKYTV.CO.NZ
DNS server found: 192.168.196.46
Nagle's algorithm (TCP_NODELAY) disabled.
SetError() #7: Timeout occurred while trying to connect to server!
________________________________________
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] on behalf of Scott Klement [sk@xxxxxxxxxxxxxxxx]
Sent: Thursday, 23 April 2015 12:08 p.m.
To: HTTPAPI and FTPAPI Projects
Subject: Re: Web server connection mostly times out - except when I step though the API with debug.
Please post a debug/trace log from times when it's timing out... (Before
doing that, make sure you obscure any personal information in the log.)
On 4/22/2015 6:24 PM, Colin Grierson wrote:
> Hi, I've got a strange problem that feels a bit like a pointer or
> parameter length error - though it may also be the remote server at
> fault.
>
>
> I'm using http_url_post_xml to send a SOAP request to a fixed URL
> (https)
>
> - This always works, returning a session id and session URL
>
> I use http_url_post_xml to send a SOAP request to the session URL
> (https again)
>
> - This almost always times out - unless I step through the API
> in debug, in which case it mostly works
>
>
> We have asked the company we are connecting to to look at their logs to
> see what they can see (still waiting for a reply...) However this sort
> of problem can be caused by pointer or parameter length issues and I'm
> wondering if the fault is on my side. Does this ring any bells with
> anyone?
>
>
> I have recently
>
> The code follows example 16
>
>
> // Call web service. Built in parse calls procedure 'Incoming',
>
> // which returns a structure with data proviced by the web service
>
> clear RtnData;
>
> #rc = http_url_post_xml(#Url
>
> : %addr(#Soap) + 2
>
> : %len(#Soap)
>
> : *NULL
>
> : %paddr(Incoming)
>
> : %addr(RtnData)
>
> : HTTP_TIMEOUT
>
> : HTTP_USERAGENT
>
> : 'text/xml'
>
> : 'create');
>
>
>
> Thanks for your help
>
> Colin Grierson
>
>
> [cid:image69975a.JPG@888f31df.4c856371]
>
> Colin Grierson | Development Consultant
>
> [1]Systems Advisory Services Ltd
>
> 520 Great South Road, Greenlane, Auckland, New Zealand | PO Box 17-268
> Greenlane
>
> Phone +64 9 525 7353 | DDI +64 9 580 8745 | Email
> [2]Colin.Grierson@xxxxxxxxxxx
>
> We develop, integrate and manage mission critical systems
>
> ________________________________________
> Attention:
> Information contained in this email message is intended only for use of
> the individual or entity named above. If the reader of this message is
> not the intended recipient, or the employee or agent responsible to
> deliver it to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is
> strictly prohibited. If you have received this communication in error,
> please immediately notify the sender by email and destroy the original
> message.
> ________________________________________
> SKY NETWORK TELEVISION LTD
> 10 Panorama Rd, Mt Wellington
> PO Box 9059, Newmarket, Auckland, NZ
> ________________________________________
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud
> service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
> __________________________________________________________________
>
> Scanned by MailMarshal - Marshal8e6's comprehensive email content
> security solution.
> __________________________________________________________________
>
> References
>
> 1. file://localhost/tmp/www.sasit.co.nz
> 2. mailto:Colin.Grierson@xxxxxxxxxxx
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
#####################################################################################
Scanned by MailMarshal - Marshal8e6's comprehensive email content security solution.
#####################################################################################
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------