victornpb / undiscord

Undiscord - Delete all messages in a Discord server / channel or DM (Easy and fast) Bulk delete
https://victornpb.github.io/undiscord
MIT License
5.26k stars 719 forks source link

API responded with status 401! #485

Open udgtehsy opened 1 year ago

udgtehsy commented 1 year ago

Undiscord Version

v5.2.1

Browser

Firefox 111.0.1 (64-bit)

Extension

TamperMonkey 4.18.1 2022-11-13

Reproduction steps

  1. Open browser and navigate to discord.com.
  2. Open UnDiscord.
  3. Open a DM you want to wipe/delete.
  4. Filled required boxes to perform wipe. (Author ID, Server ID, Channel ID).
  5. Attempt to delete messages.

Actual results

Started at 4/2/2023, 6:18:31 PM authorId = "[REDACTED]" guildId = "[REDACTED]" channelId = "[REDACTED]" minId = "[REDACTED]" maxId = "[REDACTED]" hasLink = false hasFile = false Fetching messages... Error searching messages, API responded with status 401! {"message":"401: Unauthorized","code":0} CoreException {}

Expected results

For it to properly delete my messages.

Bug affects

Additional information & file uploads

I did manually fill my token after initially encountering this issue, but it did not have any effect on the actual results. I'm at a loss for what's causing this error.

yourlocalcodemonkey commented 1 year ago

^^ Experiencing this too

LavenderAndChamomile commented 1 year ago

Same here

amytori commented 1 year ago

same

Deleterman21 commented 1 year ago

Same here.

Alex-Jud commented 1 year ago

Same here

Aldosari-95 commented 1 year ago

Same here.

udgtehsy commented 1 year ago

damn, this blew up. how are so many people having this issue..?

ayechief commented 1 year ago

@slycooper724 @ReadyCash2222 @Aldosari-95 @Alex-Jud @Deleterman21 @amytori @LavenderAndChamomile @yourlocalcodemonkey i don't think anything blew up. guys. just put your authToken in the right place! https://github.com/victornpb/undiscord/wiki/authToken

Aldosari-95 commented 1 year ago

@dotPHUNK yup having the same issue.

LavenderAndChamomile commented 1 year ago

@slycooper724 @ReadyCash2222 @Aldosari-95 @Alex-Jud @Deleterman21 @amytori @LavenderAndChamomile @yourlocalcodemonkey i don't think anything blew up. guys. just put your authToken in the right place! https://github.com/victornpb/undiscord/wiki/authToken

I did exactly the steps shown on my browser and still didn't work.

LavenderAndChamomile commented 1 year ago

I have even tried the previous version v5.2.0 and I still get the same issue.

leggingsallday commented 1 year ago

I'm also getting this message - I tried looking for auth token information, I went to do the copy/paste version and got 100 scam warnings. When I went to the logs in F12, I was getting a 404 not found error every time I tried to run it. Help!

GoodFight37 commented 1 year ago

same problem 0 fix yet

LavenderAndChamomile commented 1 year ago

I'm also getting this message - I tried looking for auth token information, I went to do the copy/paste version and got 100 scam warnings. When I went to the logs in F12, I was getting a 404 not found error every time I tried to run it. Help!

That's normal for the scam warnings.

LavenderAndChamomile commented 1 year ago

I must also note that even trying the most recent version of undiscord on Edge, I also got the same error.

markNZed commented 1 year ago

This is likely caused by the authentication token not being set correctly see https://github.com/victornpb/undiscord/wiki/authToken

However, after setting the advanced setting I was still getting an error but it was a 400 error and not the 401 error reported on this issue.

revint commented 1 year ago

I too am getting this issue, was getting a 401 error code then attempted the authentication token fix and now get a 400 error code. Fetching messages... Error searching messages, API responded with status 400! {"code":50035,"errors":{"max_id":{"_errors":[{"code":"NUMBER_TYPE_COERCE","message":"Value \"email@email.com\" is not snowflake."}]}},"message":"Invalid Form Body"} CoreException {}`

Edit: I was able to get the script working on opera, but firefox and chrome would not work.

1pauliewalnuts1 commented 1 year ago

I too am getting this issue, was getting a 401 error code then attempted the authentication token fix and now get a 400 error code. Fetching messages... Error searching messages, API responded with status 400! {"code":50035,"errors":{"max_id":{"_errors":[{"code":"NUMBER_TYPE_COERCE","message":"Value \"email@email.com\" is not snowflake."}]}},"message":"Invalid Form Body"} CoreException {}`

Edit: I was able to get the script working on opera, but firefox and chrome would not work.

Were you able to successfully mass delete messages in Discord? If yes, could you please break it down for me?

revint commented 1 year ago

I too am getting this issue, was getting a 401 error code then attempted the authentication token fix and now get a 400 error code. Fetching messages... Error searching messages, API responded with status 400! {"code":50035,"errors":{"max_id":{"_errors":[{"code":"NUMBER_TYPE_COERCE","message":"Value \"email@email.com\" is not snowflake."}]}},"message":"Invalid Form Body"} CoreException {}` Edit: I was able to get the script working on opera, but firefox and chrome would not work.

Were you able to successfully mass delete messages in Discord? If yes, could you please break it down for me?

Yes I could mass delete messages in Discord. All I did was install the script in a different browser. I wonder if its some kind of browser cache issue?

sorryzzss commented 1 year ago

I too am getting this issue, was getting a 401 error code then attempted the authentication token fix and now get a 400 error code. Fetching messages... Error searching messages, API responded with status 400! {"code":50035,"errors":{"max_id":{"_errors":[{"code":"NUMBER_TYPE_COERCE","message":"Value \"email@email.com\" is not snowflake."}]}},"message":"Invalid Form Body"} CoreException {}` Edit: I was able to get the script working on opera, but firefox and chrome would not work.

Were you able to successfully mass delete messages in Discord? If yes, could you please break it down for me?

Yes I could mass delete messages in Discord. All I did was install the script in a different browser. I wonder if its some kind of browser cache issue?

Yeah it doesn’t work on chrome for me either

alph4byt3 commented 1 year ago

I can confirm that I am also having this issue, I'm thinking perhaps some update in discord did indeed cause this because i never had the issue not so long ago, i think it was after the discord update that introduced the customizable global themes

brandonssmith commented 1 year ago

I just tried a few minutes ago. (Chrome/Windows) I had the same issue.

EDIT 1: I went in and did the Advanced Fill fix and this was the result:

Started at 4/20/2023, 11:20:01 AM authorId = "XXX" guildId = "XXX" channelId = "XXX" minId = "" maxId = "XXX" hasLink = false hasFile = false Fetching messages... Grand total: 0 (Messages in current page: 0 To be deleted: 0 Skipped: 0) offset: 0 Delete delay: 1000ms, Search delay: 30000ms Last Ping: 375ms, Average Ping: 151ms Rate Limited: 0 times. Total time throttled: 0h 0m 0s. Estimated time remaining: 0h 0m 0s Ended because API returned an empty page. [End state] {"running":true,"delCount":0,"failCount":0,"grandTotal":0,"offset":0,"iterations":1,"_seachResponse":{"analytics_id":"XXX","doing_deep_historical_index":false,"total_results":0,"messages":[]},"_messagesToDelete":[],"_skippedMessages":[]} Waiting 30.00s before next page... Ended at 4/20/2023, 11:20:31 AM! Total time: 0h 0m 30s Delete delay: 1000ms, Search delay: 30000ms Last Ping: 375ms, Average Ping: 151ms Rate Limited: 0 times. Total time throttled: 0h 0m 0s. Deleted 0 messages, 0 failed.

So essentially it allowed it to complete but it didn't actually delete anything.

ObsidianMaximus commented 1 year ago

For those of you getting this on firefox [ or chrome ], try using incognito. Worked for me!

LavenderAndChamomile commented 1 year ago

For those of you getting this on firefox [ or chrome ], try using incognito. Worked for me!

I can confirm that this works!

ObsidianMaximus commented 1 year ago

For those of you getting this on firefox [ or chrome ], try using incognito. Worked for me!

I can confirm that this works!

yep, just need to add the extension [ tamper/greasemonkey ] in normal mode and then use it in incognito ;)

riqvip commented 1 year ago

For those of you getting this on firefox [ or chrome ], try using incognito. Worked for me!

This works and seems to be the only solution for now. Thanks!

sharpenhead commented 1 year ago

For those of you getting this on firefox [ or chrome ], try using incognito. Worked for me!

This works and seems to be the only solution for now. Thanks!

When I try using incognito mode, I have to redownload the script from the website. However, the download process is different from if I were to download it regularly.

It directly installs a JavaScript file into my Downloads folder and I have no idea what I should do next. The πŸ—‘ icon still does not show after the file is downloaded.

Can you explain how you got it to work for you in Incognito mode so I can also fix this issue? Thank you.

[UPDATE]

I have fixed the issue, and going into Incognito mode is not required. You just have to downgrade Undiscord into an older version.

ObsidianMaximus commented 1 year ago

For those of you getting this on firefox [ or chrome ], try using incognito. Worked for me!

This works and seems to be the only solution for now. Thanks!

When I try using incognito mode, I have to redownload the script from the website. However, the download process is different from if I were to download it regularly.

It directly installs a JavaScript file into my Downloads folder and I have no idea what I should do next. The πŸ—‘ icon still does not show after the file is downloaded.

Can you explain how you got it to work for you in Incognito mode so I can also fix this issue? Thank you.

[UPDATE]

I have fixed the issue, and going into Incognito mode is not required. You just have to downgrade Undiscord into an older version.

As far as I know, you don't have to redownload any script. You just need to set it up normally as you would without incognito.

Once that's done, you can now open incognito tab and login to discord.com/login. Then proceed normally.

sharpenhead commented 1 year ago

For those of you getting this on firefox [ or chrome ], try using incognito. Worked for me!

This works and seems to be the only solution for now. Thanks!

When I try using incognito mode, I have to redownload the script from the website. However, the download process is different from if I were to download it regularly. It directly installs a JavaScript file into my Downloads folder and I have no idea what I should do next. The πŸ—‘ icon still does not show after the file is downloaded. Can you explain how you got it to work for you in Incognito mode so I can also fix this issue? Thank you.

[UPDATE]

I have fixed the issue, and going into Incognito mode is not required. You just have to downgrade Undiscord into an older version.

As far as I know, you don't have to redownload any script. You just need to set it up normally as you would without incognito.

Once that's done, you can now open incognito tab and login to discord.com/login. Then proceed normally.

For me, when I went into incognito mode with Undiscord previously set up, the πŸ—‘ icon did not show up on Discord in the browser. That's why I resorted to reinstalling the script, which didn't work out, so I downgraded.

ObsidianMaximus commented 1 year ago

@sharpenhead I see.

ryanlinnane commented 1 year ago

Similarly this only works in private browsing for me now. Anyone fixed it in normal mode?

ryanlinnane commented 9 months ago

Update: had to remove autofill password in chrome for discord application and now it works in normal mode.

aynaever commented 8 months ago

Same here

jozefchutka commented 8 months ago

expand "Message Intervals" and remove autofilled "Before a Message" , in my case it was an email

aynaever commented 8 months ago

Update: run it in private window and it worked smoothly w/o any problems