Code:const r = new Snoowrap({userAgent:'reddit-mybot',clientId: process.env.CLIENT_ID,clientSecret: process.env.CLIENT_SECRET,username: process.env.REDDIT_USER,password: process.env.REDDIT_PASS});Error:NoCredentialsError: Missing credentials passed to snoowrap constructor. You must pass an object containing either (a) userAgent, clientId, clientSecret, and refreshToken properties, (b) userAgent and accessToken properties, or (c) userAgent, clientId, clientSecret, username, and password properties.
Submitted September 23, 2020 at 04:07PM by DevDesk
No comments:
Post a Comment