【问题标题】:IBM Worklight 6.2 - CLI invoke returns status code 505IBM Worklight 6.2 - CLI 调用返回状态码 505
【发布时间】:2024-01-23 21:39:01
【问题描述】:

我正在使用 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

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

【问题讨论】:

    标签: ibm-mobilefirst worklight-adapters worklight-cli


    【解决方案1】:

    这是一个错误。下一个修复包包含修复。或者,如果您是 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:
    {
    

    ...

    【讨论】:

      最近更新 更多