Topic
7 replies Latest Post - ‏2013-01-11T16:11:49Z by aram208
tennenjl
tennenjl
3 Posts
ACCEPTED ANSWER

Pinned topic FWLSE0101E Error when invoking Worklight Procedure (HTTP adapter)

‏2012-12-12T20:34:55Z |
Hi,

I have an HTTP adapter which runs in WL 5.0.3. When I run the same adapter in V5.0.5, I am receiving the error:
FWLSE0101E.

2012-12-12 15:27:34 FWLSE0099E: An error occurred while invoking procedure Sports/HttpRequestFWLSE0100E: parameters:{
"arr": [
{
"method": "get",
"path": "\/search\/?q=&t=article&l=25&d=&d1=&d2=&s=start_time&sd=desc&c[]=sports*&f=rss",
"returnedContentType": "xml"
}
]
}
1
FWLSE0101E: Caused by: null
The invocation result shows:

{
"errors": [
"Array Index Out Of Bounds: 1"
],
"info": [
],
"isSuccessful": false,
"warnings": [
]
}

Any suggestions on why this is working for me in 503 and not in 505 are greatly appreciated. Thanks!

Jeff
  • aram208
    aram208
    27 Posts
    ACCEPTED ANSWER

    Re: FWLSE0101E Error when invoking Worklight Procedure (HTTP adapter)

    ‏2012-12-14T22:07:28Z  in response to tennenjl
    same here ..have not figured yet
  • aram208
    aram208
    27 Posts
    ACCEPTED ANSWER

    Re: FWLSE0101E Error when invoking Worklight Procedure (HTTP adapter)

    ‏2012-12-15T01:38:10Z  in response to tennenjl
    Jeff,

    Try encoding your url first (you can use javascript's builtin encodeURI or encodeURIComponent).

    something like this

    var path = encodeURIComponent("search?q=&t=article...etc")

    • Aram
    • aram208
      aram208
      27 Posts
      ACCEPTED ANSWER

      Re: FWLSE0101E Error when invoking Worklight Procedure (HTTP adapter)

      ‏2012-12-15T02:48:48Z  in response to aram208
      Jeff, disregard my previous message about encoding. Here is the answer

      Basically 5.0.5 does not like the query parameters being passed in the path. Instead, to pass the query string parameters you have to construct your invocation data as follows:
      suppose your url is as follows: http.example.com/pathelements?par1=val1&par2=val2

      var path = "pathelements";
      var input = {
      method : 'get',
      path:path,
      parameters:{
      "par1":"val1",
      "par2":"val2"
      }

      }

      Aram
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: FWLSE0101E Error when invoking Worklight Procedure (HTTP adapter)

    ‏2013-01-11T13:44:11Z  in response to tennenjl
    how can I pass the parameter if it is only one. I'd like to do login for an application on a Domino server, so my URL normally looks like this:
    http://www.myserver.com/mydatabase.nsf?login

    We tried several ways, but no success, we can't pass just "login" as a parameter. Any help is much appreciated!
    • aram208
      aram208
      27 Posts
      ACCEPTED ANSWER

      Re: FWLSE0101E Error when invoking Worklight Procedure (HTTP adapter)

      ‏2013-01-11T14:43:40Z  in response to SystemAdmin
      In case of GET you can just include the parameters with empty values as follows:

      path : path,
      parameters:{
      "ReadViewEntries":"",
      "ExpandView":""
      },

      However, for logging I am guessing you are trying to POST in which case I have no answer. It seems like in case of POST the query string gets included in the body. I am stuck on the same problem trying to post a form. With that said, for logging in I have developed a custom login module to authenticate with Domino.

      • aram
      • SystemAdmin
        SystemAdmin
        2327 Posts
        ACCEPTED ANSWER

        Re: FWLSE0101E Error when invoking Worklight Procedure (HTTP adapter)

        ‏2013-01-11T15:07:50Z  in response to aram208
        aram208, thank you very much for your quick response. Yes, we need post to login, so we do not have a quick fix. Would you mind to share your concept of the custom login module with us?
        • aram208
          aram208
          27 Posts
          ACCEPTED ANSWER

          Re: FWLSE0101E Error when invoking Worklight Procedure (HTTP adapter)

          ‏2013-01-11T16:11:49Z  in response to SystemAdmin
          In a nutshell you can get the ltpa token from Domino and store it as an attribute of the active user on the worklight server. You can then use it to include in your future requests. The concepts of creating custom authentication modules are described in Module 23 of the startup guides.

          To share the full details would take a long conversation outside the scope of this thread. If interested, you can contact me at aramatpointsourcellcdotcom

          Aram