You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const r = new Snoowrap({
userAgent: USER_AGENT,
clientId: CLIENT_ID,
clientSecret: CLIENT_SECRET,
username: USERNAME,
password: PASSWORD
});
r.config({continueAfterRatelimitError: true});
const client = new Snoostorm(r);
stream = client.SubmissionStream({
subreddit: subreddits,
results: 10,
pollTime: 1000
});
stream.on('submission', (data) => {
// data has continueAfterRatelimitError as false.
});
I am getting the following:
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
Error: snoowrap refused to continue because reddit's ratelimit was exceeded. For more information about reddit's ratelimit, please consult reddit's API rules at https://github.com/reddit/reddit/wiki/API.
The text was updated successfully, but these errors were encountered:
The pollTime defaults are set so an application can use both streams and never run into ratelimit problems. In most instances, the only variable you'll need to mess with is results:, just based on the size of the subreddit.
This error you're experiencing is related to your use of continueAfterRatelimitError property (of course), but by default, snoowrap will wait to comply with rate limits. If you have questions about that, I think you may find better luck filing an issue on not-an-aardvark/snoowrap
Sorry if you're having trouble, and thanks for using snoostorm!
Using the following code
I am getting the following:
The text was updated successfully, but these errors were encountered: