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.44k stars 721 forks source link

Wipe Archive Issue #509

Open Oz1e opened 1 year ago

Oz1e commented 1 year ago

Undiscord Version

5.2.1

Browser

114.0.5735.90 (Official Build) (64-bit)

Extension

TamperMonkey

Reproduction steps

1.Click the trash logo and open up the menu 2.Click "Wipe Archive" 3.Import the .json file

  1. Error

Actual results

Error says: Runnning batch with queue of 306 jobs Starting job... (1/306)

Started at 6/7/2023, 8:28:51 AM authorId = ( I think this is personal so I wont show ) Fetching messages... Error searching messages, API responded with status 403! {"message":"Missing Access","code":50001} CoreException {} Ended at 6/7/2023, 8:28:51 AM! Total time: 0h 0m 0s Delete delay: 1050ms, Search delay: 29000ms Last Ping: 175ms, Average Ping: 178ms Rate Limited: 34 times. Total time throttled: 0h 0m 26s. Deleted 0 messages, 0 failed.

Expected results

To wipe out my messages.

Bug affects

Additional information & file uploads

image

Oz1e commented 1 year ago

If not that it just stays loading but never makes progress.

Seemefly commented 1 year ago

Yeah I have had the same issue, I tried pressing the fill authorization slot but that didn't work either.

yemouu commented 1 year ago

I think this may be caused by group dms you are no longer a part of. For me, inside the index.json there are some channel ids that instead of saying Direct Message with <person> just said null. Deleting the lines with null inside the index.json allowed me to continue.

It's probably best to make a copy of your index.json before trying this.

fairywand commented 1 year ago

I think this may be caused by group dms you are no longer a part of. For me, inside the index.json there are some channel ids that instead of saying Direct Message with <person> just said null. Deleting the lines with null inside the index.json allowed me to continue.

It's probably best to make a copy of your index.json before trying this.

This isn't working for me, did you also delete the comma after the null or did you just leave them?

Lordsem commented 1 year ago

if that were the entry

, "1234567890": null,

then you need to delete:

Shungy commented 1 year ago

Removing null does not solve this fully. There are two more things to consider.

  1. If you are part of a server but your access was removed from the channel. You would still know the channel name (private channel names are public), but your access would be denied.
  2. If a thread was archived, because deleting from archived threads is not possible. There is a work around: you can send a message to a thread to reactivate it and then it will work.

A fix to Undiscord is needed. When iterating index.json, some of the errors that would normally cause a revert should instead just skip the channel.

OzzyDFS commented 1 year ago

I'm having the same issue when trying to use the wipe archive feature. I even edited the json file to only include 2 servers that I know I have access to. I have tried everything. Upgrading undiscord, using incognito, clearing cookies. I still get the same 400 error.


Runnning batch with queue of 2 jobs Starting job... (1/2)

Started at 8/30/2023, 5:01:34 PM authorId = "**" guildId = "@me" channelId = "***" minId = "" maxId = "" hasLink = false hasFile = false Fetching messages... Error searching messages, API responded with status 400! {"message":"Cannot execute action on this channel type","code":50024}

TheStressedDude commented 1 year ago

I mean I try to do the wipe archive thing, but Discord wont give it to me after I requested it from them, so does any of you know, how I can have the tampermonkey script running in the background without it pausing when I switch tab to study and so on?

ghost commented 11 months ago

I'm having the same issue when trying to use the wipe archive feature. I even edited the json file to only include 2 servers that I know I have access to. I have tried everything. Upgrading undiscord, using incognito, clearing cookies. I still get the same 400 error.

Runnning batch with queue of 2 jobs Starting job... (1/2)

Started at 8/30/2023, 5:01:34 PM authorId = "**" guildId = "@me" channelId = "***" minId = "" maxId = "" hasLink = false hasFile = false Fetching messages... Error searching messages, API responded with status 400! {"message":"Cannot execute action on this channel type","code":50024}

this been happening to me to channels in servers that do exist, and where i can delete messages manually as well... all while trying to use the json ive filled my token and even tried incognito, but nothing. this is weird and ive found no fixes yet

AndrewGBest commented 4 months ago

I am also having this issue.