Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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"
},
Did you try with UserID=sa_repository
Did you try with UserID=sa_repository
Thank you Jacob! its working