Why is my script causing a 502 error on my ecommerce platform?

I am getting 502 error for script it was working fine till yesterday I cleared the cache and all but it is still not working can anyone suggest a solution for this