-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Hello,
I'm working on a site that uses the ibmitoolkit to call into some legacy RPG programs.
For the most part everything is working. However occasionally the calls seem to get stuck, or hang for some reason. I have a hard time figuring out why. The toolkit debug logs show the xml call that is being made, but nothing after that, no response or error.
My configuration for the toolkit:
'debug' => (bool) env('TOOLKIT_DEBUG', false),
'debugLogFile' => env('TOOLKIT_DEBUG_LOG_FILE', 'storage/logs/toolkit_debug.log'), // Will have the date appended to it & be prepended with the app path if relative
'plugSize' => env('TOOLKIT_PLUGSIZE', '15M'), // 4K, 32K, 512K, 65K, 512K, 1M, 5M, 10M, 15M
'prestart' => (bool) env('TOOLKIT_PRESTART', false),
'parseOnly' => (bool) env('TOOLKIT_PARSEONLY', false), // Do not run any program; simply parse, expand dim if necessary, and return.
'parseDebugLevel' => 1, // 1-9 debug level when in parseOnly mode
'xmlserviceCliPath' => '/QOpenSys/pkgs/bin/xmlservice-cli', // The path to the xmlservice-cli program (or compatible API) on the IBM i
// system. The full path should be used because $PATH may not be set up.
'stateless' => true,
Then in the toolkit kit log I might see something like this after an rpg call:
Exec start: 2025-04-01 10:29:17
Version of toolkit front end: 1.9.3
IPC: ''. Control key: *cdata *here
Stmt: call QXMLSERV.iPLUG15M(?,?,?,?) with transport: ibm_db2
Input XML: <?xml version="1.0" encoding="ISO-8859-1" ?>
<script>
<pgm name='MyPgm' lib='' >
<parm comment=''><data var='register' type='10A'>F</data></parm>
<parm comment=''><data var='date' type='8p0'>20250401</data></parm>
<parm comment=''><data var='customer' type='9p0'>0</data></parm>
<parm comment=''><data var='time' type='12p0'>40125081501</data></parm>
<parm comment=''><data var='transactionType' type='1A'>R</data></parm>
<parm comment=''><data var='username' type='10A'>USERNAME</data></parm>
<parm comment=''><data var='reversalType' type='1A'>R</data></parm>
<parm io='in' comment=''><data var='newRegister' type='10A' /></parm>
<parm io='in' comment=''><data var='newDate' type='8p0' /></parm>
</pgm>
</script>
It just shows the call but no result or error. How can I find the underlying error?
Metadata
Metadata
Assignees
Labels
No labels