I noticed, that since a few days ago, the ZMF Plugin for Zowe, doesn't let me complete "put" requests, like zowe zmf freeze pkg -p "BK# 014585.
[2024/07/04 08:57:57.520] [ERROR] [CommandProcessor.js:943] Handler for package rejected by thrown ImperativeError.
[2024/07/04 08:57:57.524] [INFO] [CommandProcessor.js:919] Command "package" completed with success flag: "false"
[2024/07/04 08:57:57.525] [TRACE] [CommandProcessor.js:920] Command "package" finished. Response object:
{
success: false,
exitCode: 1,
message: 'The put request appeared to succeed, but the response was not in the expected format:\\n' +
'Unexpected token < in JSON at position 0',
stdout: <Buffer >,
stderr: <Buffer 1b 5b 33 31 6d 43 6f 6d 6d 61 6e 64 20 45 72 72 6f 72 3a 1b 5b 33 39 6d 0a 1b 5b 33 31 6d 1b 5b 33 39 6d 54 68 65 20 70 75 74 20 72 65 71 75 65 73 74 ... 188 more bytes>,
data: {},
error: {
msg: 'The put request appeared to succeed, but the response was not in the expected format:\\n' +
'Unexpected token < in JSON at position 0',
stack: 'SyntaxError: Unexpected token < in JSON at position 0\\n' +
' at JSON.parse (<anonymous>)\\n' +
' at JSONUtils.parse (S:\\\\software\\\\fnm\\\\node-versions\\\\v18.12.0\\\\installation\\\\node_modules\\\\@zowe\\\\cli\\\\node_modules\\\\@zowe\\\\imperative\\\\lib\\\\utilities\\\\src\\\\JSONUtils.js:42:29)\\n' +
' at RestClient.<anonymous> (S:\\\\software\\\\fnm\\\\node-versions\\\\v18.12.0\\\\installation\\\\node_modules\\\\@zowe\\\\cli\\\\node_modules\\\\@zowe\\\\imperative\\\\lib\\\\rest\\\\src\\\\client\\\\RestClient.js:70:42)\\n' +
' at Generator.next (<anonymous>)\\n' +
' at fulfilled (S:\\\\software\\\\fnm\\\\node-versions\\\\v18.12.0\\\\installation\\\\node_modules\\\\@zowe\\\\cli\\\\node_modules\\\\@zowe\\\\imperative\\\\lib\\\\rest\\\\src\\\\client\\\\RestClient.js:15:58)\\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)',
additionalDetails: 'Unexpected token < in JSON at position 0',
causeErrors: SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at JSONUtils.parse (S:\\software\\fnm\\node-versions\\v18.12.0\\installation\\node_modules\\@zowe\\cli\\node_modules\\@zowe\\imperative\\lib\\utilities\\src\\JSONUtils.js:42:29)
at RestClient.<anonymous> (S:\\software\\fnm\\node-versions\\v18.12.0\\installation\\node_modules\\@zowe\\cli\\node_modules\\@zowe\\imperative\\lib\\rest\\src\\client\\RestClient.js:70:42)
at Generator.next (<anonymous>)
at fulfilled (S:\\software\\fnm\\node-versions\\v18.12.0\\installation\\node_modules\\@zowe\\cli\\node_modules\\@zowe\\imperative\\lib\\rest\\src\\client\\RestClient.js:15:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
}
}
[2024/07/04 08:57:57.527] [ERROR] [CommandYargs.js:148] Error in command package
[2024/07/04 08:57:57.528] [ERROR] [CommandYargs.js:149] [
{
success: false,
exitCode: 1,
message: 'The put request appeared to succeed, but the response was not in the expected format:\\n' +
'Unexpected token < in JSON at position 0',
stdout: <Buffer >,
stderr: <Buffer 1b 5b 33 31 6d 43 6f 6d 6d 61 6e 64 20 45 72 72 6f 72 3a 1b 5b 33 39 6d 0a 1b 5b 33 31 6d 1b 5b 33 39 6d 54 68 65 20 70 75 74 20 72 65 71 75 65 73 74 ... 188 more bytes>,
data: {},
error: {
msg: 'The put request appeared to succeed, but the response was not in the expected format:\\n' +
'Unexpected token < in JSON at position 0',
stack: 'SyntaxError: Unexpected token < in JSON at position 0\\n' +
' at JSON.parse (<anonymous>)\\n' +
' at JSONUtils.parse (S:\\\\software\\\\fnm\\\\node-versions\\\\v18.12.0\\\\installation\\\\node_modules\\\\@zowe\\\\cli\\\\node_modules\\\\@zowe\\\\imperative\\\\lib\\\\utilities\\\\src\\\\JSONUtils.js:42:29)\\n' +
' at RestClient.<anonymous> (S:\\\\software\\\\fnm\\\\node-versions\\\\v18.12.0\\\\installation\\\\node_modules\\\\@zowe\\\\cli\\\\node_modules\\\\@zowe\\\\imperative\\\\lib\\\\rest\\\\src\\\\client\\\\RestClient.js:70:42)\\n' +
' at Generator.next (<anonymous>)\\n' +
' at fulfilled (S:\\\\software\\\\fnm\\\\node-versions\\\\v18.12.0\\\\installation\\\\node_modules\\\\@zowe\\\\cli\\\\node_modules\\\\@zowe\\\\imperative\\\\lib\\\\rest\\\\src\\\\client\\\\RestClient.js:15:58)\\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)',
additionalDetails: 'Unexpected token < in JSON at position 0',
causeErrors: SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at JSONUtils.parse (S:\\software\\fnm\\node-versions\\v18.12.0\\installation\\node_modules\\@zowe\\cli\\node_modules\\@zowe\\imperative\\lib\\utilities\\src\\JSONUtils.js:42:29)
at RestClient.<anonymous> (S:\\software\\fnm\\node-versions\\v18.12.0\\installation\\node_modules\\@zowe\\cli\\node_modules\\@zowe\\imperative\\lib\\rest\\src\\client\\RestClient.js:70:42)
at Generator.next (<anonymous>)
at fulfilled (S:\\software\\fnm\\node-versions\\v18.12.0\\installation\\node_modules\\@zowe\\cli\\node_modules\\@zowe\\imperative\\lib\\rest\\src\\client\\RestClient.js:15:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
}
}
]