-
Notifications
You must be signed in to change notification settings - Fork 193
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
Error 500 / KeyError: 'ts' #165
Comments
Debug mode adds following to the end:
|
Just started having the same issue, not sure what is causing the problem. Happening on fresh installation of Python and slack-export-viewer as well. |
@user68329 Try two things:
|
Neither of these worked for me. To make it work, I have had success removing a lot of channels from the exported zip file from Slack, re-zipping it, then loading Slack Export Viewer. I have not determined a pattern as to how many channels works properly. Also, could be an issue with amount of lines of conversation in any given channel, or perhaps character issue/limit? |
The clue is in The issue is happening because it was expecting to find a time stamp in a message, but was unable to find it. Slack uses time stamps for Threads, so its likely caused by that. The code in question is: Possible Solution:
|
I fixed it by replacing the code at line 48 in message.py with:
this works as a workaround for now |
Thanks to @MuratDoganer, I may have a theory on what's causing this. We have retention settings(message history to disappear after certain number of days) set on certain channels and all DMs. It's possible that because of this, the structure of export doesn't meet SlackViewer's expectations and yes, the possible solution above may fix the issue. We also use Slack Connect with external workspaces and I've seen internal messages disappear because of retention settings, but external message stay within the same channel. This could be the culprit. |
I see, it could be the cause! We use the default message retention values from Slack but was getting this issue on every export, decided to sit down and fix it today :) I would put in a PR but seems like I cant at the moment |
As soon as the app loads, i'm getting the below message. The browser shows "Internal Server Error"
Any idea what this could be caused by?
Tried 24-hour export and still the same issue.
Thanks
The text was updated successfully, but these errors were encountered: