Ibm mobilefirst IBM Worklight 6.2-CLI调用返回状态代码505

Ibm mobilefirst IBM Worklight 6.2-CLI调用返回状态代码505,ibm-mobilefirst,worklight-adapters,worklight-cli,Ibm Mobilefirst,Worklight Adapters,Worklight Cli,我正在使用IBM Worklight 6.2 CLI工具在适配器上创建和调用过程。当我传入一个包含空格的参数时,返回一个错误: wl invoke [?] Which procedure do you want to invoke? submitNotification [?] Enter the comma-separated parameters: "user", "hello hello" Invoking PushAdapter:submitNotification... Argumen

我正在使用IBM Worklight 6.2 CLI工具在适配器上创建和调用过程。当我传入一个包含空格的参数时,返回一个错误:

wl invoke
[?] Which procedure do you want to invoke? submitNotification
[?] Enter the comma-separated parameters: "user", "hello hello"
Invoking PushAdapter:submitNotification...
Arguments:
[
  "user",
  "hello hello"
]
Invocation result:
Status Code: 505 HTTP Version Not Supported

服务器上没有记录任何内容,跟踪文件中也没有有用的消息。如果传递的参数没有空格字符,则不会发生这种情况。

这是一个错误。下一个fixpack包含修复程序。或者,如果您是IBM客户,您可以在可用时打开PMR以获取ifix

使用“%20”对空格进行编码的变通方法

$ wl invoke
[?] Which procedure do you want to invoke? submitNotification
[?] Enter the comma-separated parameters: "user", "hello%20hello"
Invoking PushAdapter:submitNotification...
Arguments:
[
  "user",
  "hello%20hello"
]
Invocation result:
{