500 error creating a new invoice with the API

Hi,

I got 500 internal server errors while using “api/v1/invoices” API

**Request: **
Post - /api/v1/invoices
{
“assigned_user_id”: “VolejRejNm”,
“client_id”: “VolejRejNm”,
“number”: “0040”,
“po_number”: “1111”,
“terms”: “”,
“public_notes”: “”,
“private_notes”: “”,
“footer”: “”,
“custom_value1”: “”,
“custom_value2”: “”,
“custom_value3”: “”,
“custom_value4”: “”,
“tax_name1”: “”,
“tax_name2”: “”,
“tax_rate1”: “”,
“tax_rate2”: “”,
“tax_name3”: “”,
“tax_rate3”: “”,
“line_items”:[{
“product_key” : “Test”,
“notes” : “description”,
“quantity” : 1,
“cost” : 200.00
},{
“product_key” : “Test 2”,
“notes” : “description”,
“quantity” : 2,
“cost” : 100.00
}],
“discount”: “”,
“partial”: “”,
“is_amount_discount”: 0,
“uses_inclusive_taxes”: 0,
“date”: “2021-11-26”,
“partial_due_date”: “”,
“due_date”: “2021-12-31”,
“custom_surcharge1”: “”,
“custom_surcharge2”: “”,
“custom_surcharge3”: “”,
“custom_surcharge4”: “”
}

Response:
{
“message”: “Server Error”
}

I have checked all the Server/Nginx/larval logs but couldn’t find the error listed in them.
Please help with this. what I am passing wrong here!

The logs are in storage/logs/laravel.log

let us know what they say.

Other logs are generated in storage/logs/laravel.log but when I am hitting this API, logs are not getting generated. I am doing tail -f for tracking logs.
Even not found in Nginx error logs.

it sounds like it is a permissions issue then if you have no log output.

I got an error in API response after doing the below things.

Enabled debug mode in .env file: APP_DEBUG=true
And reload the configuration: php artisan config:cache

Thanks