ommSSL_read: timeout
Posted: Thu Jul 10, 2025 6:54 pm
I'm trying to call a REST API and the call to http_string gets stuck for about 60 seconds, then it returns error ommSSL_read: timeout. Any ideas if I may be doing something wrong?
I have setup a call to the API via the Postman website and it works fine. So I think I have the parms correct.
The API requires bearer authentication. So I make the call below with UserID blank and field password set to the access token.
http_setAuth( HTTP_AUTH_BEARER
: %trim(Userid)
: %trim(Password) );
I only have one form parm;
form_data = 'include=All';
There's one URL parm of "subscription-key" (I changed the key below for security).
url = 'https://apis-sandbox.paycor.com/v1/lega ... hlmnopqrst';
then I call the API;
response = http_string('POST': url : %trim(form_data) :
'application/x-www-form-urlencoded')
That's where it gets stuck and when it finally returns control to my program field htttpccode = "ommSSL_read: timeout".
I used debug to step into the http_string procedure. It calls http_req with type set to POST.
rc = http_req(Type: URL: *omit: Output: *omit: SendStr: ct );
then it gets stuck on the call to http_persist_req and variable rc = 0 on return.
Here's the values passed to the http_persist_req procedure.
Type POST
comm SPP:D70893993402ACC0
URL https://apis-sandbox.paycor.com/….....
sndFd -1
sndProc SPP:*NULL
SendPtr SPP:E2CE24E5B6016784
SendLen 11
rcvFd -1
rcvProc PRP:D48ABF2F160126C8
global.timeout 60
global.userAgent http-api/1.52
ct application/x-www-form-urlencoded
soapAction null
global.modTime 0001-01-01-00.00.00.000000
sendLen64 ); 0
I have setup a call to the API via the Postman website and it works fine. So I think I have the parms correct.
The API requires bearer authentication. So I make the call below with UserID blank and field password set to the access token.
http_setAuth( HTTP_AUTH_BEARER
: %trim(Userid)
: %trim(Password) );
I only have one form parm;
form_data = 'include=All';
There's one URL parm of "subscription-key" (I changed the key below for security).
url = 'https://apis-sandbox.paycor.com/v1/lega ... hlmnopqrst';
then I call the API;
response = http_string('POST': url : %trim(form_data) :
'application/x-www-form-urlencoded')
That's where it gets stuck and when it finally returns control to my program field htttpccode = "ommSSL_read: timeout".
I used debug to step into the http_string procedure. It calls http_req with type set to POST.
rc = http_req(Type: URL: *omit: Output: *omit: SendStr: ct );
then it gets stuck on the call to http_persist_req and variable rc = 0 on return.
Here's the values passed to the http_persist_req procedure.
Type POST
comm SPP:D70893993402ACC0
URL https://apis-sandbox.paycor.com/….....
sndFd -1
sndProc SPP:*NULL
SendPtr SPP:E2CE24E5B6016784
SendLen 11
rcvFd -1
rcvProc PRP:D48ABF2F160126C8
global.timeout 60
global.userAgent http-api/1.52
ct application/x-www-form-urlencoded
soapAction null
global.modTime 0001-01-01-00.00.00.000000
sendLen64 ); 0