Shopify Broker site Error 502 Bad Gateway

I was testing/trying ERPNext shopify integration for my site hosted in datacenter does not connect to shopify via shopify erpnext app.

What to do?

Oh, created private app and generated API keys with shopify apps and provided those details to ERPNext to make connection! and it worked!