Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot Randomly Crashes #6

Open
Tnology opened this issue Nov 10, 2023 · 1 comment
Open

Bot Randomly Crashes #6

Tnology opened this issue Nov 10, 2023 · 1 comment
Labels
Bug Something isn't working

Comments

@Tnology
Copy link
Owner

Tnology commented Nov 10, 2023

Bug Report

The bot will sometimes crash at random with an "Uncaught DiscordAPIError" as seen below:

error: Uncaught DiscordAPIError:
GET /guilds/471700758354460672/members/1017989345292058656 returned 404
(10007) Unknown Member
      throw new DiscordAPIError({
            ^
    at BucketHandler.execute (https://raw.githubusercontent.com/harmonyland/harmony/daca400ae9feab19604381abddbdab16aa1ede2b/src/rest/bucket.ts:224:13)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async BucketHandler.push (https://raw.githubusercontent.com/harmonyland/harmony/daca400ae9feab19604381abddbdab16aa1ede2b/src/rest/bucket.ts:55:13)
    at async RESTManager.make (https://raw.githubusercontent.com/harmonyland/harmony/daca400ae9feab19604381abddbdab16aa1ede2b/src/rest/manager.ts:236:12)
    at async RESTManager.get (https://raw.githubusercontent.com/harmonyland/harmony/daca400ae9feab19604381abddbdab16aa1ede2b/src/rest/manager.ts:259:12)
    at async MemberRolesManager._resolveMemberPayload (https://raw.githubusercontent.com/harmonyland/harmony/daca400ae9feab19604381abddbdab16aa1ede2b/src/managers/memberRoles.ts:22:23)
    at async MemberRolesManager.array (https://raw.githubusercontent.com/harmonyland/harmony/daca400ae9feab19604381abddbdab16aa1ede2b/src/managers/memberRoles.ts:50:17)
[root@vps TnologyDiscordBot]# 

Expected Behavior

The expected behavior is the bot not crashing at random.

How to Reproduce

I can't seem to find a trigger for this error, it just seems to happen at random while the bot is running. However, I have noticed that there is no "main.ts" within the error - only Harmony's bucket.ts and memberRoles.ts and similar. The crash isn't immediate, it takes some time with the bot running for the bot to crash.

Additional Context

I posted a screenshot of this error in Harmony's official Discord server, and one of the developers replied with "huh" - I said "I suppose this is an issue with Harmony?" to which they said "probably.."

@Tnology Tnology added the Bug Something isn't working label Nov 10, 2023
@Tnology
Copy link
Owner Author

Tnology commented Nov 10, 2023

Seems like an issue with Harmony, opened an issue there: harmonyland/harmony#371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant