Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Member cache is not always populating #56

Open
OvermindDL1 opened this issue Feb 13, 2018 · 5 comments
Open

Member cache is not always populating #56

OvermindDL1 opened this issue Feb 13, 2018 · 5 comments
Labels
bug elusive Bugs that are hard to reproduce

Comments

@OvermindDL1
Copy link

The member cache, randomly it seems when the system is brought up, will refuse to populate itself and calls like Alchemy.Cache.member(guild_id, id) never return anything until restarted and tested again. When it is not working it returns nothing but {:error, "Failed to find an entry for <whateverID> in section members"}.

@cronokirby
Copy link
Owner

This seems to be an issue on discord's part with not sending the information, and not necessarily a problem with the code itself.

@OvermindDL1
Copy link
Author

This seems to be an issue on discord's part with not sending the information, and not necessarily a problem with the code itself.

Any way to 'bump' it though a few times to try to re-acquire the information? Getting nothing until later reboots is rather empty.

@cronokirby cronokirby added bug elusive Bugs that are hard to reproduce labels May 29, 2019
@cronokirby
Copy link
Owner

#79 addressed this. See if you encounter the same problem running https://hex.pm/packages/discord_alchemy/0.6.4. If the problem doesn't seem to occurr anymore, we can close this :P

@OvermindDL1
Copy link
Author

I'll update soon! The bot stays online for extended periods and the cache not working was pretty random, but the commit of the fix looks reliable. I'd say if you don't hear back from me in a few weeks then it's good. I'm going to remove a few of my checks that force it to restart when it detects a dead cache so it should be a bit crashy if it happens at that point. :-)

Thanks much!

@OvermindDL1
Copy link
Author

Just as an update, it came up without issue twice so far (I decided to update everything while I was at it, so far I've been lucky...).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug elusive Bugs that are hard to reproduce
Projects
None yet
Development

No branches or pull requests

2 participants