Sri Lanka's crisis is a product of Chinese foreign policy, specifically its practice of "debt-trap diplomacy." China offers to build sparkling new infrastructure based on unsustainable amounts of debt, then host countries default and China gets a new link in its "Belt and Road Initiative."
India is responsible for the "debt trap" allegations. It is an effort to interfere with China's friendly and productive economic ties with its neighbors. India should commit to joining in with regional economic cooperation efforts instead of hampering them.
The Rajapaksa's reign in Sri Lanka has been marked by nepotism and persistent allegations of corruption on top of atrocities committed against civilians during the civil war. The clan has invited outsized and opaque Chinese investments so that they themselves could personally profit at the expense of the nation. Sri Lankans are justifiably angry.