2 Replies Latest reply: Jul 13, 2016 8:39 AM by swarup malli RSS

    Not able to start a task via QRS. Error that we’re getting is: Cannot find a task with the following name

    swarup malli

      We’re trying to use QRS to start a job. We’re authenticating using certificates which are assigned to a particular machine and user.

       

      This is the config that we’re using:

       

      var config = {
      authentication: 'certificates',
      host: '....',
      useSSL: true,
      cert: 'client.pem',
      key: 'client_key.pem',
      ca: 'root.pem',
      port: 4242,
      headerKey: 'X-Qlik-User',
      headerValue: 'UserDirectory=Internal;UserId=....'
      };

       

       

      We tried doing POST requests to these end points:

       

      /qrs/task/ <task id>/start

      /qrs/task/start/synchronous/?name=…&xrfkey=ABCDEFG123456789

       

      But the result is similar to this one.

       

       

      "statusCode": 400,

          "body": "Cannot find a task with the following name:SomeAPP_Dev",

          "headers": {

            "cache-control": "private, must-revalidate, max-age=0",

      "transfer-encoding": "chunked",

            "expires": "Tue, 12 Jul 2016 19:36:38 GMT",

            "server": "Repository API REST Server/2.2.4.0 Microsoft-HTTPAPI/2.0",

            "date": "Tue, 12 Jul 2016 19:36:37 GMT",

            "connection": "close"

          },