Example: Google Sheets NPM

You need to debug it step by step using messages
https://www.wix.com/corvid/forum/corvid-tips-and-updates/you-can-log-console-messages-in-your-backend-code