mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-06 18:10:34 +00:00
Added .NET Core, removed Out of memory and mono
@@ -20,17 +20,12 @@ Check the following pages to learn how to schedule **DiscordChatExporter.CLI** r
|
||||
* [Linux scheduling](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Scheduling-exports-with-Mono-&-Crontab)
|
||||
|
||||
### It crashes/fails
|
||||
Please **check the version of your .NET Framework**:<br/>
|
||||
* **Windows 7** - 'Control Panel > Programs and Features'<br/>
|
||||
* **Windows 10** - 'Start > Settings > Apps > Apps & Features'<br/>
|
||||
* Or [follow alternative instructions here](https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed).
|
||||
Check the following page:
|
||||
* [Installing .NET Core Runtime](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Install-.NET-Core-runtime)
|
||||
|
||||
If your **.NET Framework is older than 4.6**, [please upgrade](https://dotnet.microsoft.com/download/dotnet-framework).
|
||||
<br/>
|
||||
If your .**NET Framework is up-to-date**, please check if the solution to your problem is on this page.
|
||||
|
||||
### System.OutOfMemoryException
|
||||
Try using date ranges or partitioning. (Issue [#125](https://github.com/Tyrrrz/DiscordChatExporter/issues/125))
|
||||
### .NET Core Runtime is required
|
||||
Check the following page:
|
||||
* [Installing .NET Core Runtime](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Install-.NET-Core-runtime)
|
||||
|
||||
# CLI
|
||||
|
||||
@@ -53,14 +48,16 @@ DiscordChatExporter.Cli.exe export -t BOTTOKEN -b -c CHANNEL
|
||||
### Username is not in the sudoers file. This incident will be reported
|
||||
Run `su` on Terminal, then `adduser USER sudo`, replacing `USER` with your username. Reboot.
|
||||
|
||||
### Mono command not found
|
||||
If you're trying to execute Mono within a script on macOS, make sure you include the PATH variable.
|
||||
<br/>
|
||||
Adding the following text before the command should solve this:
|
||||
### dotnet command not found
|
||||
Try restarting your **Mac** before following the instructions below.<br/>
|
||||
Adding `/usr/local/share/dotnet` to your `PATH` might solve it.<br/>
|
||||
**1.** Run the command `sudo nano /etc/paths`. You will be prompted for your password and you won't be able to see it as you type<br/>
|
||||
**2.** In a new paragraph, paste `/usr/local/share/dotnet`<br/>
|
||||
**3.** Hit Control+O, then Control+X<br/>
|
||||
**4.** Open a new terminal window and test<br/>
|
||||
|
||||
|
||||
|
||||
```
|
||||
PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
|
||||
```
|
||||
### Unhandled Exception
|
||||
|
||||
```
|
||||
@@ -89,19 +86,10 @@ The command should be like:
|
||||
Unhandled Exception:
|
||||
System.TypeLoadException: Could not load type of field 'DiscordChatExporter.Cli.Program+<>c__DisplayClass1_0:container' (0) due to: Could not load file or assembly 'Stylet ...
|
||||
```
|
||||
↳ The `Stylet.dll` file is missing. Keep the `.exe` and the `.dll` files together. If you didn't move the `.exe`, try unzipping again.
|
||||
↳ The `Stylet.dll` file is missing. Keep the `.exe` and the `.dll` files together. If you didn't change the the files, try unzipping again.
|
||||
|
||||
<br/>
|
||||
|
||||
```
|
||||
Unhandled Exception:
|
||||
System.MissingMethodException: Method 'System.Net.Logging.get_Http' not found.
|
||||
...
|
||||
```
|
||||
|
||||
↳ Make sure Mono is correctly installed if you're running [macOS](https://github.com/Tyrrrz/DiscordChatExporter/wiki/macOS-usage-instructions) or [Linux](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Linux-usage-instructions).
|
||||
|
||||
<br/>
|
||||
|
||||
```
|
||||
Unhandled Exception:
|
||||
@@ -115,8 +103,6 @@ Debian/Ubuntu: `cert-sync /etc/ssl/certs/ca-certificates.crt`
|
||||
Red Hat: `cert-sync --user /etc/pki/tls/certs/ca-bundle.crt`
|
||||
<br/><br/>
|
||||
If it still doesn't work, try mozroots: `mozroots --import --ask-remove`
|
||||
<br/>
|
||||
Further reading: [(3) Verify Installation](https://www.mono-project.com/download/stable/#download-lin).
|
||||
|
||||
***
|
||||
|
||||
|
||||
Reference in New Issue
Block a user