-
With the v2.0.0-rc.2 release, I always get this error when I specify the In an older version of the readme, you were wondering why anyone would use this flag:
The reason I used it is because my workspace has several thousands users and it takes a long time to fetch them (because of my slow internet connection?). The channels/threads I use slackdump on have very few users and they rarely change. One thing I noticed with the v2.0.0-rc.2 release is that the users cache file is now stored in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @pican79 , thanks for the discovery! Found the reason - this regression is related to the Slack Export imlementation (in + if len(users) < 2 { // me and slackbot.
+ return nil, errors.New("invalid number of users retrieved.")
+ }
+
+ // now, this is filthy, but Slack does not allow us to call GetUserIdentity with browser token.
+ sd.me = users[userIdxMe] For the slack export we need to know the ID of the user that is running the export, and this user always has index 1 in the list of retrieved users. It is not possible to use GetUserIdentity call, because it requires different kind of token, so I resorted to a filthy way of getting the "current user", and paid the price of breaking --no-user-cache function. Will fix. |
Beta Was this translation helpful? Give feedback.
-
Fixed in v2 release :) |
Beta Was this translation helpful? Give feedback.
Fixed in v2 release :)