Replies: 14 comments
-
The number of exported messages has no correlation with the stability of your connection. |
Beta Was this translation helpful? Give feedback.
-
I forgot to mention that I export per 1 day. This is the command I use. The files that I diffed are |
Beta Was this translation helpful? Give feedback.
-
I often have my daily backups interrupted by internet outages, but the only way I've seen it affect the output is by totally aborting it. The file doesn't reach the end, simply cutting off prematurely (and thus there is no message count listed). As I haven't seen this before, I'm not sure if internet stability is the cause. |
Beta Was this translation helpful? Give feedback.
-
This is the script I use:
I use this script inside an archlinux container. This is the package I use: https://aur.archlinux.org/packages/discord-chat-exporter-cli/ |
Beta Was this translation helpful? Give feedback.
-
Is there anything abnormal about the channel's contents or the messages that are getting skipped? Are you able to reproduce this with other channels? I did a little poking around but wasn't able to find anything that looked like it would cause the problem. On an unrelated note, you might want to consider using templates to build your filename instead of array literals so that you don't have to edit the script if a referenced channel/server is renamed. |
Beta Was this translation helpful? Give feedback.
-
I didn't see anything suspicious about it.
Yes. See below. I made a new test yesterday same as before (two tests). It took a long time because of crap internet 😂. I compared these tests and I did not see any difference in I use dhcpcd and I checked the logs. Nothing was there. I don't know if the router rebooted at that time. But I made another test today. I ran my script as is. I turned off the router while data was being downloaded. After a minute I saw the error below. The incomplete
I waited a few more minutes to see if it's going to spit the same error but it did not. It just kept on waiting at
Some channels put emoji on their channel names. I didn't want it. So I maintain it myself. |
Beta Was this translation helpful? Give feedback.
-
Actually, if I recall correctly, the writers print the postamble (which includes the message count) when being disposed, so it actually makes sense that the file appears "complete" despite failing to export all messages. I was just able to reproduce this by turning off my Wi-Fi connection during a manual export.
As such, this statement of mine from earlier is probably unrelated to my unreliable internet and not relevant to the issue at hand. To confirm: the messages that are missing are the latest messages (i.e. the end of the export is cut off)? Is the issue that DCE is failing silently? I received the same exception that you posted when testing, but if the program reports it, I'm not sure what else can be done besides increasing the timeout. |
Beta Was this translation helpful? Give feedback.
-
Yes. That's what it looks like.
DCE doesn't seem to timeout when it tries to export when the router was already off. It should be the same when the router is turned off midway. |
Beta Was this translation helpful? Give feedback.
-
Has this been fixed? |
Beta Was this translation helpful? Give feedback.
-
No, I just closed all issues labeled as questions. Reopened now. I don't know if we can do anything here. Ideas? |
Beta Was this translation helpful? Give feedback.
-
The only solution I see is endless retrying when connection fails instead of eventually timing out, but I don't know if that would be good behaviour. Perhaps if the user is notified that DCE is having trouble connecting, either through a CLI progress message or a GUI pop-up? |
Beta Was this translation helpful? Give feedback.
-
I think they should be already getting the exception mention in this thread. It's also pretty generic ( |
Beta Was this translation helpful? Give feedback.
-
If I understood correctly, @rEnr3n's request is that the program catches this exception and retries until a connection is available again, as an unstable internet connection has the capability to stop an export and force the user to restart from the beginning. To my knowledge, DCE is already fairly lenient, but I don't know to what scale OP's internet outages are. I'm personally not too keen on attempting to retry indefinitely (at least, not without input from the user), but maybe there's a better way to handle long interruptions. |
Beta Was this translation helpful? Give feedback.
-
Internet connection was not the issue. The data I get was consistent despite connectivity issues. The issue was with the router turned off while downloading was in progress. That's the only time I got the error and missing data. I could monitor the logs for this error but I thought there might be a better way. Could this be an issue with .NET? |
Beta Was this translation helpful? Give feedback.
-
I have an unstable internet connection. I tested exporting some channels twice to see if there is a difference. I saw some files have big difference in file size. I diffed them. I saw this at the end:
Beta Was this translation helpful? Give feedback.
All reactions