[#54] addServiceProvider & editServiceProvider have started failing with response id error

Migrated from Redmine #54 | Author: Steve Murphy
Status: Closed | Priority: High, I’m very impatient | Created: 2017-10-06


Both methods have worked fine for months but recently (last two weeks maybe) started failing with the following error

Uncaught exception ‘Exception’ with message 'Incorrect response id (request id: 1, response id: )

example code (PHP)

// addServiceProvider

$name = $_POST[‘name’];
$providers = $adminClient->addServiceProvider($data = array(“name” => $name, “is_visible” => “0”, “qty” => “1”));

echo json_encode($providers);

// editServiceProvider
$id = $_POST[‘id’];
$name = $_POST[‘name’];
$description = $_POST[‘description’];
$phone = $_POST[‘phone’];
$email = $_POST[‘email’];
$is_visible = $_POST[‘is_visible’];

 $client = simplyBookAdminToken($user_identity);

$editProvider = $client->editServiceProvider($id, $data = array(“name” => $name, “description” => $description, “phone” => $phone, “email” => $email, “is_visible” => $is_visible));
echo json_encode($editProvider);

Redmine Admin wrote:

Fixed

(Short original content)