Comments (15)
Also, which version of slackdump did you use?
2.4.0 Windows_x86_64
from slackdump.
Hey @eximius313 , out of interest, could you try opening the same export file with SlackLogViewer? https://github.com/thayakawa-gh/SlackLogViewer/releases
this app works, although images are not loaded
from slackdump.
This works! It doesn't load images, but messages are loaded.
Is it slackdump
bug, or shall I rase the issue on SlackLogViewer
?
Thank you for your help!
from slackdump.
By the way - could be lack of "user" caused by "disabled" user in Slack?
Because folder names also notain Channel ID instead of disabled user's name
This is interesting, I'll test it tomorrow and see if that is the case.
It doesn't load images, but messages are loaded.
SlackLogViewer and slack-export-viewer won't be able to show images. Difference being:
- The original slack export does not have attachments, but the URLDownload and URLDownloadPrivate are pointing to the Slack server with an additional parameter that contains a "xoxe-..." slack export token.
- The export files generated by slackdump have attachments downloaded, but of course the viewers know nothing about them. If you have an application, bot or legacy token that can access files throught the slack workspace, you can use the command line flag
-export-token
, or specify SLACK_FILE_TOKEN parameter, while invoking the export, and Slackdump will append this token to all file URLs.-export-token string Slack token that will be added to all file URLs, (environment: SLACK_FILE_TOKEN)
I feel that I need to write my own slack export viewer at some point, but I lack frontend skills, and CSS, JS and HTML are not my cup of tea.
from slackdump.
I submitted the PR to the slack-export-viewer that addresses this panic, the author of slack-export-viewer is usually pretty fast to reply. FYI: hfaran/slack-export-viewer#167
from slackdump.
Hey @eximius313 , out of interest, could you try opening the same export file with SlackLogViewer? https://github.com/thayakawa-gh/SlackLogViewer/releases
from slackdump.
Also, which version of slackdump did you use?
from slackdump.
I was not able to reproduce this on any workspaces that I have available, but it looks like there's a message in your export, that has an incomplete "replies" entry.
Consider this excerpt taken from a valid export file, i.e. 2022-01-01.json in a public channel, that has one reply:
// ...
"ts": "1579555974.009000",
"thread_ts": "1579555974.009000",
"last_read": "1579562553.009200",
"subscribed": true,
"reply_count": 1,
"replies": [
{
"user": "US6CXSEBU",
"ts": "1579562553.009200"
}
],
"latest_reply": "1579562553.009200",
//...
Slack export viewer crashes on assembling an item lookup key:
item_lookup_key = (item['user'], item['ts'])
reporting that "item" does not have a 'user'
key, that can only happen in one situation: somewhere in your export file there's a malformed entry, that may look like this (ts value will be different):
"replies": [
{
"ts": "1579562553.009200"
}
]
This part is fetched and saved "as is" from slack API output, so it seems that there might have been a glitch during the export session.
I assume that you won't be able to share the export file with me to examine, so could you help me and confirm that this is the case by locating this anomaly in the export file that is failing to be opened by slack export viewer?
If you are able to find the file with the malformed entry, you will know the channel name. And if you do, are you able to run the export of this channel again and see if the slack export viewer opens it?
from slackdump.
I wrote a simple test file and removed the "user" from the file that I used as an example, and was able to make slack-export-viewer fail with the same error:
from slackdump.
Also, if you want, you can make it work by changing line 230
of reader.py
to the following, as a temporary workaround:
from slackdump.
By the way - could be lack of "user" caused by "disabled" user in Slack?
Because folder names also notain Channel ID instead of disabled user's name
from slackdump.
The slack-export-viewer PR was merged!
from slackdump.
Thanks!
By the way - could be lack of "user" caused by "disabled" user in Slack? Because folder names also notain Channel ID instead of disabled user's name
Were you able to investigate this missing username in export issue?
from slackdump.
Hey @eximius313 , I created a new issue just for this, #224, not to lose it from the radar. Will check when able.
from slackdump.
thanks!
from slackdump.
Related Issues (20)
- OOM while exporting a large conversation
- Handling 500—599 server errors
- export data older than 3 months? HOT 4
- Dump results returned by the search
- Error but process exit code is 0. HOT 2
- Please consider adding the merge option HOT 1
- docker container image to run slackdump HOT 9
- Fetching external files (i.e. stored on Google Drive)
- Date range parameters to only download data within a certain range HOT 3
- Retry on 408 timeout errors
- incremental backup - update of existing dumps (export/std) HOT 7
- Fetching only saved items HOT 2
- Member lists missing (fixed in 2.4.0), implement in 3.0.0 HOT 11
- slackdump showing gtk module not loaded error HOT 1
- Check if disabled users are not making it to the message's "replies" field
- Add support for exporting canvases and attachments HOT 3
- Variation in capitalization of "type" HOT 8
- When using export-type mattermost program downloads files anyway HOT 2
- Is possible to dump Emojis with information about who created? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slackdump.