API using sdk-php Fatal Error


I’m new using invoice ninja and I always get the same error while trying to save data using the api.

Uncaught exception ‘Exception’ in C:\xampp\htdocs\ninja\sdk-php-master\src\vendor\invoiceninja\sdk-php\src\InvoiceNinja\Models\AbstractModel.php:164 Stack trace: #0 C:\xampp\htdocs\ninja\sdk-php-master\src\vendor\invoiceninja\sdk-php\src\InvoiceNinja\Models\AbstractModel.php(62): InvoiceNinja\Models\AbstractModel::sendRequest(‘https://localho…’, Object(InvoiceNinja\Models\Client), ‘POST’) #1 C:\xampp\htdocs\ninja\test.php(11): InvoiceNinja\Models\AbstractModel->save() #2 {main} thrown in C:\xampp\htdocs\ninja\sdk-php-master\src\vendor\invoiceninja\sdk-php\src\InvoiceNinja\Models\AbstractModel.php on line 164

I don’t know what to do, I tried lot’s of things like reuploading the sdk-php ect.

Thanks for your help in advance!

nvm, resolved it by reinstalling invoice ninja completely

Thanks for the update!

I’m not sure why it didn’t work initially, if it happens again there may be more details about the error in storage/logs/laravel-error.log