RangeError: Input string is too long for MQI field
at Object.exports.setMQIString (/opt/mqtest/node_modules/ibmmq/lib/mqiutils.js:46:13)
at _newMQRFH2ffi (/opt/mqtest/node_modules/ibmmq/lib/mqrfh2.js:105:5)
at _copyRFH2toC (/opt/mqtest/node_modules/ibmmq/lib/mqrfh2.js:123:16)
at exports.MQRFH2.getBuffer (/opt/mqtest/node_modules/ibmmq/lib/mqrfh2.js:159:10)
causes
i've changed "RFH2 " to "RFH" (because
setMQIString
can pad strings with spaces) in https://github.com/ibm-messaging/mq-mqi-nodejs/blob/72fba926b7010a85ce2a2c6459d2e9c58fa066d7/lib/mqrfh2.js#L105but then noticed that
_copyRFH2toC
just ignoresStrucLength
andNameValueCCSID
from the original object