[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
REST Web Service errors
[cid:image001.jpg@01D16E46.06059410]
I am currently writing 2 programs: PGM_A runs on server1 to execute a
http_url_post_stmf to execute PGM_B on server2. The programs are
executing fine, however, I keep receiving a HTTP 500 error in the debug
file. The data is sent from PGM_A to PGM_B and I am able to retrieve
if from STDIN and write it to a IFS file.
The error log on server2 has the following message:
Premature end of script headers: File name is epyrrcv1rg.pgm
The contents of the debug file are as follows:
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V7R1M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_url_post_stmf(): entered
getting post file size...
opening file to be sent...
opening file to be received
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00001136'
DNS default domain: CLERICUSMAGNUS.COM
DNS server found: 208.67.222.222
DNS server found: 208.67.220.220
DNS server found: 198.6.100.53
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /epyrcv1/epyrrcv1rg/RICT/DSPRICT4/S1/00000787878 HTTP/1.1
Host: DEVELOP:4080
User-Agent: http-api/1.24
Content-Type: text/xml
Content-Length: 114
sendraw(): entered
<?xml version="1.0" encoding="utf-8"?>
<epay id="00000888888">
<payment>
<name>RT</name>
</payment>
</epay>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Date: Tue, 23 Feb 2016 20:25:02 GMT
Server: Apache
Content-Length: 539
Connection: close
Content-Type: text/html; charset=UTF-8
SetError() #13: HTTP/1.1 500 Internal Server Error
recvresp(): end with 500
recvdoc parms: identity 539
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
<P>The server encountered an internal error or misconfiguration and was
unable to complete your request.</P>
<P>Please contact the server administrator, [no address given] and
inform them of the time the error occurred, and anything you might have
done that may have caused the error. </P>
<P>More information about this error may be available in the server
error log.</P>
</body></html>
SetError() #13: HTTP/1.1 500 Internal Server Error
http_close(): entered
As you can see in the debug file the xml (in red) is there and the
content-type appear to be correct. The IFS File has the xml in it and
looks fine.
I just can't seem to determine why I am getting the HTTP 500 error. If
anyone could point me in the right direction that would be great.
Thanks,
Ric Turner
Jano Justice Systems, Inc
601.362.7601 ext. 224
800.250.9884 ext.224
The preceding e-mail is privileged and confidential and is intended
only for the named addressee. If you received this message in error,
please delete it and notify the sender by return e-mail or by phone at
the numbers noted above.

-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------