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

Export hangs and doesn't continue #1021

Open
shootie22 opened this issue Mar 25, 2023 · 27 comments
Open

Export hangs and doesn't continue #1021

shootie22 opened this issue Mar 25, 2023 · 27 comments

Comments

@shootie22
Copy link

shootie22 commented Mar 25, 2023

Version

2.39.1

Flavor

GUI (Graphical User Interface)

Export format

HTML

Details

Hi DCE devs, I want to first of all thank you for this amazing project. You are doing god's work.

I'm having an issue with exporting chats, it seems to hang after a while and I cannot figure out when or what causes it. What I did was to put in my token, CTRL + A on my DMs and export as HTML to a folder on my Desktop. My C drive has enough storage space. It exports fine until the very last bit, where it just hangs and doesn't continue:
image

I tried exporting the chats from a small server, and it hung a bit after starting:
image

I can't figure out what is happening so I'm filing this bug report to hopefully get it working. Thanks in advance!

Steps to reproduce

  1. Paste in your auth code
  2. CTRL + A to select all chats
  3. Export as HTML, dark, into a folder
  4. Export
@shootie22 shootie22 added the bug label Mar 25, 2023
@shootie22
Copy link
Author

shootie22 commented Mar 25, 2023

uh oh I forgot to censor my auth token 💀

@Yudi
Copy link
Contributor

Yudi commented Mar 25, 2023

uh oh I forgot to censor my auth token 💀

Your token will reset if you change your password

@shootie22
Copy link
Author

fixed, thanks for the tip

@Tyrrrz
Copy link
Owner

Tyrrrz commented Mar 25, 2023

Can you test if it also happens on v2.36.4?

@shootie22
Copy link
Author

yup, v2.36.4 seems not to have that issue. managed to export all my DMs without issues

@Tyrrrz
Copy link
Owner

Tyrrrz commented Mar 25, 2023

yup, v2.36.4 seems not to have that issue. managed to export all my DMs without issues

Are you using a bot or a user token?

@shootie22
Copy link
Author

I'm using a user token

@Tyrrrz
Copy link
Owner

Tyrrrz commented Aug 7, 2023

So it seems that it might be caused by new rate limit handling (introduced in v2.37, right after v2.36.4). However, the delays should be capped, meaning that the export should still progress further at some point. If it gets fully stuck, then the issue might be something else.

@Tyrrrz
Copy link
Owner

Tyrrrz commented Sep 3, 2023

Could also be caused by #1103. Does the channel contain many server invites?

@decoherencer
Copy link

So it seems that it might be caused by new rate limit handling (introduced in v2.37, right after v2.36.4). However, the delays should be capped, meaning that the export should still progress further at some point. If it gets fully stuck, then the issue might be something else.

Is there a way to force the delay to resync, or get a visual signal when delay is active on next expected time? It is stuck for hours and I have no idea if it is working or not,
and if I start again for such stuck guild, I have to do from start again i guess?

@Tyrrrz
Copy link
Owner

Tyrrrz commented Nov 7, 2023

Is there a way to force the delay to resync, or get a visual signal when delay is active on next expected time? It is stuck for hours and I have no idea if it is working or not,
and if I start again for such stuck guild, I have to do from start again i guess?

The delay should never exceed one minute between requests, AFAIK. So if it's stuck for hours, something else is going wrong. I asked someone to test an older version and it seems they experienced slow exports there too, so I'm not sure what's wrong.

@nightbug08
Copy link

nightbug08 commented Nov 25, 2023

I am also appearing to have this problem. It downloaded about a third of the channels I set it to, then the yellow loading bar just hung there. Then it started getting smaller whenever I clicked another server icon? It's not even giving me 0kb ghost files for anything now, even on another laptop 20 hours later.

I can still chat in all my servers and DM people though, so it's confusing.

@quartztester
Copy link

@Tyrrrz I am able to reproduce this error on v2.42.6 using a user auth token. Similar to @shootie22 this is through exporting DMs and I don't believe #1103 is the issue.

Is there any way to check the status of the downloads other than the visual indicator in the application window? Are there any other diagnostic criteria I should look into?

Looking at my windows task manager there's 0 Network usage leading to the conclusion that the program is stuck in some regard (after a solid 30 minutes of waiting).

@Tyrrrz
Copy link
Owner

Tyrrrz commented Dec 4, 2023

Is there any way to check the status of the downloads other than the visual indicator in the application window? Are there any other diagnostic criteria I should look into?

There is no logging, but you might get some insight but looking at the export file and seeing which message it gets stuck on. If it's consistently getting stuck at the same place, it would imply the issue is in the content that gets exported. If it gets stuck at random places, then the issue is probably somewhere else.

In any case, I'd also ask to test in v2.36.4 as well to rule out the rate-limiting behavior I mentioned earlier in the comments.

@quartztester
Copy link

It has been consistently getting stuck in a different place from the few servers that I've tried. Issue is most likely somewhere else. v2.36.4 was successful in server and DM exports.

If you'd like me to perform any other test let me know @Tyrrrz.

@quartztester
Copy link

Side note, what update was thread support added?

@Tyrrrz
Copy link
Owner

Tyrrrz commented Dec 5, 2023

v2.36.4 was successful in server and DM exports.

Okay then it's most likely caused by the new rate-limiting behavior.

Side note, what update was thread support added?

Depends on in which capacity you mean. Because threads are just regular channels, so exporting them was always possible (in CLI).

@quartztester
Copy link

quartztester commented Dec 5, 2023

Is there any way I can test the or diagnose the rate-limiting behavior?
Why was it added in the first place? Could there be an added option to change the behavior of the rate limit in future updates?

Depends on in which capacity you mean.

In regards to GUI support as threads aren't scraped in v2.36.4 and there doesn't seem to be a mention of threads in the changelog other than fixes to other thread related fixes.

@281732
Copy link

281732 commented Dec 6, 2023

Having the same issue using the latest docker image, works fine on version 2.36.2

@Tyrrrz
Copy link
Owner

Tyrrrz commented Dec 10, 2023

@cheese529
Copy link

I have been running into this same issue for the last 48 hours. Exports keep getting stuck especially in channels with a lot of invalid server invite links. Is there anyway at all to fix this? Tried with both the latest version of version 2.38

@Tyrrrz
Copy link
Owner

Tyrrrz commented Dec 15, 2023

I have been running into this same issue for the last 48 hours. Exports keep getting stuck especially in channels with a lot of invalid server invite links. Is there anyway at all to fix this? Tried with both the latest version of version 2.38

Have you tried the version linked above?

@cheese529
Copy link

cheese529 commented Dec 16, 2023

I have been running into this same issue for the last 48 hours. Exports keep getting stuck especially in channels with a lot of invalid server invite links. Is there anyway at all to fix this? Tried with both the latest version of version 2.38

Have you tried the version linked above?

Will try it tonight after work and let you know how it works. FYI after switching accounts and IP address, it started working again on version 2.38.

@cheese529
Copy link

UPDATE: Tried the version linked above and it does seem to work better.

@Tyrrrz
Copy link
Owner

Tyrrrz commented Dec 19, 2023

UPDATE: Tried the version linked above and it does seem to work better.

Try using it for a while and see if it works better consistently. This issue seems to be non-deterministic, so it's better to gather a larger sample size.

@cheese529
Copy link

i'll get right on it, going to try exporting channels ranging from 20k messages to over 500k messages with invite links as well.

@traxart79
Copy link

im also having this issue with the latest version, anyone got fixes?

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

Successfully merging a pull request may close this issue.

9 participants