Migrated from Redmine #459 | Author: developer developer Status: New | Priority: Immediate, there is BUG! | Created: 2019-12-24
I have used simple book login api and its not working on website. I have used below mentioned code for login.
$client = new JsonRpcClient(‘https://user-api.simplybook.me/’, array(
‘headers’ => array(
'X-Company-Login: '.‘magicmaid’,
'X-Token: ’ . $token
)
));
please catch error from JsonRpcClient and check the error details.
@
try {
$getClient = $client->getClientInfoByLoginPassword($login,$password);
} catch (Exception $e) {
echo $e;
}
@
i have checked and it works fine on your company.
please make sure that you have changed API keys and credentials, because it is not safe to post them in such places.
I got the below error. Can you check the below problem
Exception: Request error: Client with given login/password not found in /home1/quirksto/public_html/gamma/hembry/JsonRpcClient.php:57 Stack trace: #0 /home1/quirksto/public_html/gamma/hembry/login.php(17): JsonRpcClient->__call(‘getClientInfoBy…’, Array) #1 {main}
So there is no client with such login and password.
And API returns you error about it you should handle it and write to your customer that login or password is wrong.
There is nothing to check from our side.
Just enter correct login and password.
That user is created by me from the API and the login details are correct.Also If I create user from the backend, I got the restore password link in email and this link is redirect to the page not found link.
Sorry for the delay. Now I have purchase the subscription till now the problem is not solved. Please check and let me know what issue. "Request error: Client with given login/password not found "