Hallo zusammen,
ich hatte folgendes Script in Version 10.0.15:
public function __construct()
{
$this->System = 'otobo';
$this->RestUser = 'USER';
$this->RestPassword = 'PWD';
$this->WebServiceName = 'GenericTicketConnectorREST';
$this->BaseURL = "https://" . $this->System . ".xxxxxxxxx.de/otobo/nph-genericinterface.pl/Webservice/" . $this->WebServiceName;
$this->Headers = [];
$this->Body = json_encode(
[
"UserLogin" => $this->RestUser,
"Password" => $this->RestPassword,
]
);
$response = Unirest\Request::post($this->BaseURL . "/Session", $this->Headers, $this->Body);
if (!$response->body->SessionID)
{
echo "
<pre>ERROR: Keine Session-ID
Base URL: $this->BaseURL
";
print_r($response) . "</pre>
";
exit(1);
}
$this->SessionID = $response->body->SessionID;
}
Lief ohne Probleme.
Jetzt nach dem Update auf 10.1.2 erhalte ich nur noch eine Fehlermeldung:
ERROR: Keine Session-ID
Base URL: https://xxxxxxxxxxx.de/otobo/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST
Unirest\Response Object
(
[code] => 200
[raw_body] => {"Error":{"ErrorMessage":"SessionCreate: Password parameter is missing!","ErrorCode":"SessionCreate.MissingParameter"}}
[body] => stdClass Object
(
[Error] => stdClass Object
(
[ErrorMessage] => SessionCreate: Password parameter is missing!
[ErrorCode] => SessionCreate.MissingParameter
)
)
[headers] => Array
(
[0] => HTTP/1.1 200 OK
[Connection] => close
[Content-Type] => application/json; charset=UTF-8
[Content-Length] => 119
)
)
Hat jemand eine Idee in welche Richtung ich da suchen muss?
Bin absolut ratlos….