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
I have an issue where the program will check too many times a minute, giving an ugly error. Is there a way to prevent this error, rather than just catching it?
(node:57585) UnhandledPromiseRejectionWarning: IgResponseError: GET /api/v1/direct_v2/inbox/?visual_message_return_type=unseen&thread_message_limit=10&persistentBadging=true&limit=20 - 429 Too Many Requests; Please wait a few minutes before you try again.
at Request.handleResponseError (/home/ubuntu/instagram-discord-bridge/node_modules/instagram-private-api/dist/core/request.js:125:16)
at Request.send (/home/ubuntu/instagram-discord-bridge/node_modules/instagram-private-api/dist/core/request.js:53:28)
(node:57585) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: "x")
where "x" is initially 1, which increases by one every time error is thrown.
The text was updated successfully, but these errors were encountered:
Yes, this problem is because of rate limiting. Ideally this would be fixed by checking for rate limiting and increasing the interval between checks, although I'm not really supporting this project anymore.
As a quick fix, you could edit the 1 second interval between message checks to something longer in instagram.js:
I have an issue where the program will check too many times a minute, giving an ugly error. Is there a way to prevent this error, rather than just catching it?
where "x" is initially 1, which increases by one every time error is thrown.
The text was updated successfully, but these errors were encountered: