GithubHelp home page GithubHelp logo

Comments (15)

eximius313 avatar eximius313 commented on June 12, 2024 1

Also, which version of slackdump did you use?

2.4.0 Windows_x86_64

from slackdump.

eximius313 avatar eximius313 commented on June 12, 2024 1

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.

eximius313 avatar eximius313 commented on June 12, 2024 1

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.

rusq avatar rusq commented on June 12, 2024 1

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.

rusq avatar rusq commented on June 12, 2024 1

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.

rusq avatar rusq commented on June 12, 2024

Hey @eximius313 , out of interest, could you try opening the same export file with SlackLogViewer? https://github.com/thayakawa-gh/SlackLogViewer/releases

from slackdump.

rusq avatar rusq commented on June 12, 2024

Also, which version of slackdump did you use?

from slackdump.

rusq avatar rusq commented on June 12, 2024

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.

rusq avatar rusq commented on June 12, 2024

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:
image

from slackdump.

rusq avatar rusq commented on June 12, 2024

Also, if you want, you can make it work by changing line 230 of reader.py to the following, as a temporary workaround:

image

from slackdump.

eximius313 avatar eximius313 commented on June 12, 2024

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.

rusq avatar rusq commented on June 12, 2024

The slack-export-viewer PR was merged!

from slackdump.

eximius313 avatar eximius313 commented on June 12, 2024

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.

rusq avatar rusq commented on June 12, 2024

Hey @eximius313 , I created a new issue just for this, #224, not to lose it from the radar. Will check when able.

from slackdump.

eximius313 avatar eximius313 commented on June 12, 2024

thanks!

from slackdump.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.