GiorgioBrux / nitro-sniper-enhanced

Snipes nitro gift codes from an alt account(s) to your main account.
GNU General Public License v3.0
44 stars 231 forks source link

Bitfield invalid #54

Closed DarkGD123 closed 3 years ago

DarkGD123 commented 3 years ago

Yeah

2021-02-21T11:35:26.347136+00:00 app[worker.1]: at new Role (/app/node_modules/discord.js/src/structures/Role.js:28:20) 2021-02-21T11:35:26.347137+00:00 app[worker.1]: at RoleManager.add (/app/node_modules/discord.js/src/managers/BaseManager.js:49:32) 2021-02-21T11:35:26.347137+00:00 app[worker.1]: at RoleManager.add (/app/node_modules/discord.js/src/managers/RoleManager.js:30:18) 2021-02-21T11:35:26.347138+00:00 app[worker.1]: at Message._patch (/app/node_modules/discord.js-light/classes.js:56:89) 2021-02-21T11:35:26.347138+00:00 app[worker.1]: at new Message (/app/node_modules/discord.js/src/structures/Message.js:44:20) 2021-02-21T11:35:26.347139+00:00 app[worker.1]: at new Message (/app/node_modules/discord.js-light/classes.js:11:4) { 2021-02-21T11:35:26.347140+00:00 app[worker.1]: [Symbol(code)]: 'BITFIELD_INVALID' 2021-02-21T11:35:26.347140+00:00 app[worker.1]: } 2021-02-21T11:35:26.415042+00:00 heroku[worker.1]: Process exited with status 1 2021-02-21T11:35:26.531025+00:00 heroku[worker.1]: State changed from up to crashed

GiorgioBrux commented 3 years ago

@DarkGD123 Can you give me the env variables you are using (replacing the sensible parts with asterisks or similar)?

notquitethereyet commented 3 years ago

i'm getting the same issue ​https://quiet-sent.thigh.pics/emEC61411.png

GiorgioBrux commented 3 years ago

Thanks @quiet69 , if anyone has the full error I would be really grateful because for some reason I can't reproduce it on my local installation.

notquitethereyet commented 3 years ago

@GiorgioBrux ​https://quiet-sent.thigh.pics/emf8B70Bd.png

GiorgioBrux commented 3 years ago

It probably won't fix it, but can you try with the latest version (v.1.8.5) just to be sure?

sonicm35 commented 3 years ago

It probably won't fix it, but can you try with the latest version (v.1.8.5) just to be sure?

image

/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js/src/util/BitField.js:151
    throw new RangeError('BITFIELD_INVALID', bit);
    ^

RangeError [BITFIELD_INVALID]: Invalid bitfield flag or number: 0.
    at Function.resolve (/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js/src/util/BitField.js:151:11)
    at new BitField (/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js/src/util/BitField.js:17:38)
    at new Permissions (/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js/src/util/Permissions.js:11:1)
    at Role._patch (/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js/src/structures/Role.js:66:24)
    at new Role (/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js/src/structures/Role.js:28:20)
    at RoleManager.add (/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js/src/managers/BaseManager.js:49:32)
    at RoleManager.add (/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js/src/managers/RoleManager.js:30:18)
    at Message._patch (/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js-light/classes.js:89:89)
    at new Message (/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js/src/structures/Message.js:44:20)
    at new Message (/home/runner/GiorgioBrux-nitro-sniper-enhanced/node_modules/discord.js-light/classes.js:11:4) {
  [Symbol(code)]: 'BITFIELD_INVALID'
}
exit status 1

Same error with v1.8.5

GiorgioBrux commented 3 years ago

Can anyone try with 2bd5788044be6d0f8acc102cda31b026f4f7e00d/v1.8.6? Sorry but again I still can't reproduce it so I'm a bit lost.

notquitethereyet commented 3 years ago

nope same issue... try these solutions maybe? https://stackoverflow.com/questions/63441875/rangeerror-bitfield-invalid-when-checking-for-permission-overwrites-discord-j https://stackoverflow.com/questions/63522829/rangeerror-bitfield-invalid-invalid-bitfield-flag-or-number something concerning checking for permissions

GiorgioBrux commented 3 years ago

nope same issue... try these solutions maybe? https://stackoverflow.com/questions/63441875/rangeerror-bitfield-invalid-when-checking-for-permission-overwrites-discord-j https://stackoverflow.com/questions/63522829/rangeerror-bitfield-invalid-invalid-bitfield-flag-or-number something concerning checking for permissions

Thanks for taking the time for doing some research but this is a likely problem with my fork of discord.js. I've reverted back the newest changes, can you check it again?

DarkGD123 commented 3 years ago

[Offtopic]

Can i use attachment:// for the custom webhook avatar?

GiorgioBrux commented 3 years ago

[Offtopic]

Can i use attachment:// for the custom webhook avatar?

No idea. Just upload to imgur and then use that url.

DarkGD123 commented 3 years ago

[Offtopic] Can i use attachment:// for the custom webhook avatar?

No idea. Just upload to imgur and then use that url.

Ah ok then, thanks

GiorgioBrux commented 3 years ago

Anyway some people have told me it's fixed, so I'm closing this issue. If it still happens to anyone, send a message and I will reopen.