Open Chaphasilor opened 3 years ago
I just looked at this again and managed to reduce the code to the following:
let mentions = (await this.client.getInbox({
filter: `mentions`
}))
mentions.forEach(async x => {
x = await x.expandReplies(Infinity);
})
Steps to reproduce:
setInterval()
works just fine.'constructor' of undefined
.I never got this error before and didn't change this part of the code for a few weeks. Maybe reddit changed their API a bit?
@SpyTec can you reproduce this? :)
Today I encountered some strange error messages:
When there's a brand new comment (less than ~30s old), and I try to fetch the replies to that comment, I get the following error message:
It seems to be caused by fetching the replies, although it's hard to pinpoint the exact issue because there's not a single line of my own code in the stack trace. But poking around with the debugger also indicated that the issue has to do with accessing replies.
Here's what I'd call the 'relevant code':
As indicated by the error message, the 'comments' I'm working with are mentions fetched from the inbox. Might be relevant, might not be...