undiscord icon indicating copy to clipboard operation
undiscord copied to clipboard

API responded with status 401!

Open udgtehsy opened this issue 1 year ago β€’ 35 comments

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

  • [x] DMs
  • [ ] DMs (group)
  • [ ] Channels
  • [ ] Channel (NSFW)

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.

udgtehsy avatar Apr 02 '23 16:04 udgtehsy

^^ Experiencing this too

yourlocalcodemonkey avatar Apr 03 '23 08:04 yourlocalcodemonkey

Same here

LavenderAndChamomile avatar Apr 03 '23 21:04 LavenderAndChamomile

same

amytori avatar Apr 04 '23 01:04 amytori

Same here.

Deleterman21 avatar Apr 04 '23 04:04 Deleterman21

Same here

Alex-Jud avatar Apr 05 '23 09:04 Alex-Jud

Same here.

Aldosari-95 avatar Apr 05 '23 22:04 Aldosari-95

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

udgtehsy avatar Apr 06 '23 07:04 udgtehsy

@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

ayechief avatar Apr 06 '23 09:04 ayechief

I'm still getting the problem and and my authToken is correct.

"Error searching messages, API responded with status 400!"

dotPHUNK avatar Apr 07 '23 16:04 dotPHUNK

@dotPHUNK yup having the same issue.

Aldosari-95 avatar Apr 07 '23 18:04 Aldosari-95

@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 avatar Apr 07 '23 18:04 LavenderAndChamomile

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

LavenderAndChamomile avatar Apr 07 '23 20:04 LavenderAndChamomile

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!

leggingsallday avatar Apr 09 '23 06:04 leggingsallday

same problem 0 fix yet

GoodFight37 avatar Apr 11 '23 17:04 GoodFight37

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 avatar Apr 11 '23 18:04 LavenderAndChamomile

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

LavenderAndChamomile avatar Apr 11 '23 18:04 LavenderAndChamomile

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.

markNZed avatar Apr 13 '23 08:04 markNZed

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 protected]\" 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.

revint avatar Apr 15 '23 21:04 revint

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 protected]\" 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?

1pauliewalnuts1 avatar Apr 16 '23 05:04 1pauliewalnuts1

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 protected]\" 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?

revint avatar Apr 16 '23 06:04 revint

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 protected]\" 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

sorryzzss avatar Apr 16 '23 20:04 sorryzzss

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

alph4byt3 avatar Apr 17 '23 19:04 alph4byt3

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.

brandonssmith avatar Apr 20 '23 17:04 brandonssmith

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

ObsidianMaximus avatar May 17 '23 06:05 ObsidianMaximus

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

I can confirm that this works!

LavenderAndChamomile avatar May 22 '23 20:05 LavenderAndChamomile

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 ;)

ObsidianMaximus avatar May 23 '23 01:05 ObsidianMaximus

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!

riqvip avatar Jun 02 '23 01:06 riqvip

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.

sharpenhead avatar Aug 04 '23 17:08 sharpenhead

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.

ObsidianMaximus avatar Aug 05 '23 08:08 ObsidianMaximus

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.

sharpenhead avatar Aug 07 '23 20:08 sharpenhead