Syntax Errorr: Unexpected end of JSON input

my ionic application with a woo-commerce back-end was working and ordering fine in localhost but when i serve the it in cpanel and try ordering a product it is giving me a POST error Syntax Errorr: Unexpected end of JSON input…any help please?

Perhaps you backend returns a error message as html page when you call it from your cpanel

it retrieve all the products comments rates and everything even a user can register the only error am facing is when i send an order

Could you please go to the NETWORK tab on your browser and paste the response here?