Welcome Guest, Not a member yet? Register   Sign In
whoops page
#1
Exclamation 

Hello,
i use an package from github: https://github.com/fattureincloud/fattur...ud-php-sdk
and i integrate it correctly.. 
my problem is when use it in a specefic conditions my website return the "whoops page" although i use the Exception!
my code is: 
PHP Code:
$config FattureInCloud\Configuration::getDefaultConfiguration()->setAccessToken('tokenvalue');


 
$apiInstance = new FattureInCloud\Api\ClientsApi(
 
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
 // This is optional, `GuzzleHttp\Client` will be used as default.
 
new GuzzleHttp\Client(),
 
$config
 
);
 
$company_id 12345678// int | The ID of the company.

$q 'vat_number=xxxxx'// string | Query for filtering the results.
  
try {
    $result $apiInstance->listClients($company_id$fields$fieldset$sort$page$per_page$q);
    print_r($result);
} catch (
Exception $e) {
    echo 'Exception when calling ClientsApi->listClients: '$e->getMessage(), PHP_EOL;


in error log i see this: 
resulted in a `422 Unprocessable Entity` response:

{"error":{"message":"Invalid query syntax.","validation_result":null}}

My questio is:
How i change the whoops page by the error message returned?! because i not need by script stopped and must continue working with diplayong error message!
thanks..
Reply


Messages In This Thread
whoops page - by pws - 07-19-2022, 03:34 AM
RE: whoops page - by kenjis - 07-24-2022, 06:10 PM
RE: whoops page - by chakycool - 07-26-2022, 04:55 AM
RE: whoops page - by superior - 07-27-2022, 12:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB