HTTP_STMF fail with error MCH1210
Posted: Tue Jun 09, 2026 12:08 pm
Hi.
I use the http_stmf to recieve files from two differet public areas in Norway. (LIBHTTP 1.54)
This fails: https://directory-static.peppol.eu/expo ... scards.xml
The other OK : https://data.brreg.no/enhetsregisteret/ ... astned/csv
IBM answer "if we check the values that are downloaded (working = 130Mb versus non-working 7.5GB) we may assume that the HTTPAPIR4 is limited to handle large amounts of data."
Application error. MCH1210 unmonitored by HTTPAPIR4 at statement
0000008412, instruction X'0000'.
Program Status . . . . . . . . . . . . : 00202
The call to ended in error (C G D F).
Previous Status . . . . . . . . . . . : 00000
Statement in Error . . . . . . . . . . : 00003003
RPG Routine . . . . . . . . . . . . . : HTTP_STM
Number of Parameters . . . . . . . . . :
Message Type . . . . . . . . . . . . . : MCH
Additional Message Info . . . . . . . : 1210
Message Data . . . . . . . . . . . . . :
Receiver value too small to hold result.
Status that caused RNX9001 . . . . . . :
My code: (more or less EXAMPLE1)
H DFTACTGRP(*NO)
H BNDDIR('HTTPAPI')
/copy httpapi_h
D rc s 10I 0
D msg s 52A
D Type s 10a varying
D URL S 32767A varying
D IFS S 5000A varying
D ContentType S 16384A varying
c callp http_debug(*ON)
c eval type= %trim('GET')
c eval URL = 'https://directory-static'
c + '.peppol.eu/export1'
c + '/export-all-businesscards.xml'
c eval IFS = '/ecp/peppol/xml/'
c + 'Participants.xml'
c callp http_stmf(
c type
c : URL
c : IFS
c : *OMIT
c : ContentType
c )
c eval *inlr = *on
I used some time on this error and also with Copilot. Copilot point at the Contenttype length?
Any ideas?
I use the http_stmf to recieve files from two differet public areas in Norway. (LIBHTTP 1.54)
This fails: https://directory-static.peppol.eu/expo ... scards.xml
The other OK : https://data.brreg.no/enhetsregisteret/ ... astned/csv
IBM answer "if we check the values that are downloaded (working = 130Mb versus non-working 7.5GB) we may assume that the HTTPAPIR4 is limited to handle large amounts of data."
Application error. MCH1210 unmonitored by HTTPAPIR4 at statement
0000008412, instruction X'0000'.
Program Status . . . . . . . . . . . . : 00202
The call to ended in error (C G D F).
Previous Status . . . . . . . . . . . : 00000
Statement in Error . . . . . . . . . . : 00003003
RPG Routine . . . . . . . . . . . . . : HTTP_STM
Number of Parameters . . . . . . . . . :
Message Type . . . . . . . . . . . . . : MCH
Additional Message Info . . . . . . . : 1210
Message Data . . . . . . . . . . . . . :
Receiver value too small to hold result.
Status that caused RNX9001 . . . . . . :
My code: (more or less EXAMPLE1)
H DFTACTGRP(*NO)
H BNDDIR('HTTPAPI')
/copy httpapi_h
D rc s 10I 0
D msg s 52A
D Type s 10a varying
D URL S 32767A varying
D IFS S 5000A varying
D ContentType S 16384A varying
c callp http_debug(*ON)
c eval type= %trim('GET')
c eval URL = 'https://directory-static'
c + '.peppol.eu/export1'
c + '/export-all-businesscards.xml'
c eval IFS = '/ecp/peppol/xml/'
c + 'Participants.xml'
c callp http_stmf(
c type
c : URL
c : IFS
c : *OMIT
c : ContentType
c )
c eval *inlr = *on
I used some time on this error and also with Copilot. Copilot point at the Contenttype length?
Any ideas?