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

API responded with status 401! #485

Open
1 of 4 tasks
udgtehsy opened this issue Apr 2, 2023 · 35 comments
Open
1 of 4 tasks

API responded with status 401! #485

udgtehsy opened this issue Apr 2, 2023 · 35 comments

Comments

@udgtehsy
Copy link

udgtehsy commented Apr 2, 2023

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

  • 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.

@yourlocalcodemonkey
Copy link

^^ Experiencing this too

@LavenderAndChamomile
Copy link

Same here

@amytori
Copy link

amytori commented Apr 4, 2023

same

@Deleterman21
Copy link

Same here.

@Alex-Jud
Copy link

Alex-Jud commented Apr 5, 2023

Same here

@Aldosari-95
Copy link

Same here.

@udgtehsy
Copy link
Author

udgtehsy commented Apr 6, 2023

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

@ayechief
Copy link

ayechief commented Apr 6, 2023

@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
Copy link

@dotPHUNK yup having the same issue.

@LavenderAndChamomile
Copy link

@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
Copy link

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

@leggingsallday
Copy link

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
Copy link

same problem 0 fix yet

@LavenderAndChamomile
Copy link

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
Copy link

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

@markNZed
Copy link

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
Copy link

revint commented Apr 15, 2023

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
Copy link

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
Copy link

revint commented Apr 16, 2023

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
Copy link

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
Copy link

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
Copy link

brandonssmith commented Apr 20, 2023

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
Copy link

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

@LavenderAndChamomile
Copy link

LavenderAndChamomile commented May 22, 2023

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

I can confirm that this works!

@ObsidianMaximus
Copy link

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
Copy link

riqvip commented Jun 2, 2023

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
Copy link

sharpenhead commented Aug 4, 2023

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
Copy link

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
Copy link

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
Copy link

@sharpenhead I see.

@ryanlinnane
Copy link

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

@ryanlinnane
Copy link

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

@aynaever
Copy link

Same here

@jozefchutka
Copy link

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

@aynaever
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests