Error 500 on hosted version

@Amit.Panchal

I’ll need more information, ie which exact endpoint is returning the 500 and what is the payload you are attempting to send.

@david Here are the requests, internal api calls and responses for payment done for Company 1. We’ll share details for Company2 in next message…

Webhook Request 1:
{“body”:{“context":“is_eligible”,“subscription”:“4y1aK7GaQG”,“contact”:“DbDkG4xxal”,“contact_email”:"[email protected]”,“client”:“yb82EgOgev”,“account_key”:null,“db”:“db-ninja-01”}}

Webhook Response 1:
{“message”:“Success”,“status_code”:200}

Webhook Request 2:
{“body”:{“context”:“single_purchase”,“invoice”:“7axkNlyEey”,“client”:“yb82EgOgev”,“subscription”:“4y1aK7GaQG”,“account_key”:null,“db”:“db-ninja-01”}}
Inside processSinglePurchaseWebhook() : No action required

Webhook Response 2:
{“message”:“Success”,“status_code”:200}

Webhook Request 3:
{“body”:{“context”:“plan_paid”,“subscription”:“4y1aK7GaQG”,“recurring_invoice”:null,“client”:“yb82EgOgev”,“contact”:“DbDkG4xxal”,“invoice”:“7axkNlyEey”,“account_key”:null,“db”:“db-ninja-01”}}

Application invokes clients api internally:
https://invoicing.co/api/v1/clients/yb82EgOgev

Webhook Response 3:
{“message”:“Success”,“status_code”:200}

Here are the requests, internal api calls and responses for payment done for Company 2. We are seeing error 500 upon payment and need your help.

Webhook Request 1:
{“body”:{“context":“is_eligible”,“subscription”:“KGRb427eBL”,“contact”:“wdL9Q4PDej”,“contact_email”:"[email protected]”,“client”:“xbo2ymyYag”,“account_key”:null,“db”:“db-ninja-01”}}

Webhook Response 1:
{“message”:“Success”,“status_code”:200}

Webhook Request 2:
{“body”:{“context”:“plan_paid”,“subscription”:“KGRb427eBL”,“recurring_invoice”:null,“client”:“xbo2ymyYag”,“contact”:“wdL9Q4PDej”,“invoice”:“xbo29yNXag”,“account_key”:null,“db”:“db-ninja-01”}}

Application invokes clients api internally:
https://invoicing.co/api/v1/clients/xbo2ymyYag

Webhook Response 2:
{“message”:“Success”,“status_code”:200}

@Amit.Panchal

it is still unclear, can you show the payload and endpoint of the route you are seeing the 500 on, you’ev only described 200’s so far.

@david
Well, we dont see any issues in application. We can see error 500 on Invoice Ninja UI after making a payment through a card.

@bruce
Could you please share what end-user is seeing on Invoice Ninja UI after completing the payment ?

Hi @david

So as @Amit.Panchal mentions, everything works fine on our side, it’s just the error 500 generated after submitted card info that is the problem…

The error happens on this page

https://fg-na1.invoicing.co/client/payments/process/response

And if the user reloads the url, the client portal appears and all is well… the emails confirning payment and from our application are also sent successfully…

I’ve pasted in a screenshot from Firefox of a blocked url and the error 500 url

Along with the 2 .har files from network tools…

Blocked File

https://drive.google.com/file/d/1srXI-NdWn0vJUwlweqty65a4FPrOPedY/view?usp=sharing

Error 500 File

https://drive.google.com/file/d/1CkxGEPEy6lHR7cdpdB01VOnTLJOYAzsA/view?usp=sharing

@bruce
@Amit.Panchal

Please try again, i’ve checked a small fix in.

Thank you @david everything went through fine this time!

@david

Thanks for your help by providing a fix. Is this fix work for all the companies (including the one we are planning to add in near future) ?