When importing an app via the QRS API as documented here, here and explained further here How to Import a QlikSense App Via the QRS API, the API call throws a 500 Internal Server Error with an error message that says:
Value cannot be null.
Parameter name: path2
Or the API call throws a 400 Bad Request error with an error massage that says:
Additional text encountered after finished reading JSON content: :. Path '', line 1, position 10.
Is this a defect or is there something being done wrong?
Environment:
Qlik Sense Enterprise on Windows
In both cases, the calls are being made incorrectly. For the 500 error, the request body is likely missing, so check that. The 400 error is more of a documentation clarity issue. This error is thrown because after reading the API documentation, the request body being used is something like the following:
{
"filename": "myApp.qvf"
}
However, the above is incorrect. Instead, the request body should simply be the following:
"myApp.qvf"
In other words, there are no curly brackets or identifiers that need to be specified, just the app name with extension. The other two documentation sources above in the description do a better job at explaining this.