levi-turner / QlikSenseScripts

MIT License
35 stars 10 forks source link

Error 400 #1

Closed ChrisDeveloping closed 4 years ago

ChrisDeveloping commented 5 years ago

Hey,

when running your script I get the following error:

Invoke-RestMethod : Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung. In C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\1.13.1\functions\core.ps1:32 Zeichen:15

The following code leads to the error: $RESTAppObject = Invoke-QlikGet -path "/qrs/dataconnection/full?filter=(name eq 'monitor_apps_REST_appobject')"

What can I do?

Greetings

Nillth commented 5 years ago

@ChrisDeveloping please update to the latest version of Qlik-cli to resolve the issue Based on the error

Invoke-RestMethod : Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung. In C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\1.13.1\functions\core.ps1:32 Zeichen:15

the issues is with the Qlik-Cli module. the command

$RESTAppObject = Invoke-QlikGet -path "/qrs/dataconnection/full?filter=(name eq 'monitor_apps_REST_appobject')"

tested on the current Qlik-Cli works correctly

levi-turner commented 4 years ago

Closing as old. I did make an update (https://github.com/levi-turner/QlikSenseScripts/blob/master/qs-cli/qs-cli-pwd_change.ps1) which uses a loop rather than the previous hideous statically defined list of data connections.