Closed Dvik closed 7 months ago
Hey @Dvik , thanks for the report!
I think I know what's going on , there's a progressive wait on API error, it's just not clear in non-verbose output what error has happened. I suspect that an error that can not be recovered is attempting to be recovered. For Tier2 the default number of retries is set to 20.
Could you please repeat this command with -v and -trace=trace.out flags, like so:
./slackdump -v -log=i280.log -trace=trace.out -t2-retries=3 -export my-workspace.zip C031LU2KL8B
It will fail, but it will fail faster.
After that, could you please:
i280.log
file which will contain the verbose log output. You can encrypt it too, if you wish.The trace file does not contain any secrets, but may contain the workspace name, though I think I removed that long time ago.
Hmmm..once i ran it with the above command, it succeeded. I do see a lot of slack rate limit exceeded messages in the i280.log file now though but at last, it was successful in exporting the entire channel.
Not sure why it's successful when running with log and trace though or is it bcs of -t2-retries=3
?
That explains it - there's a retry logic on 500 server error, and most probable explanation is that something in that channel was returning 500, so it was retrying it. When you ran it for the second time after the server issue was resolved, you were able to download it.
The action item for me is to make the errors move obvious :)
Thanks @rusq
No problem,
fixed in v2.5.8, it will display the underlying error should the retry fail.
(v3 fixed)
Describe the bug Got application error while dumping a slack channel
2024/04/05 16:35:36 application error: export error: error exporting conversation C031LU2KL8B: failed to dump "syncup" (C031LU2KL8B): callback was unable to complete without errors within the allowed number of retries
It works fine for other channels. It's failing only for this channel. The above error log is also not verbose enough to know why it's failing.
Authentication type (please read) SSO
To Reproduce Steps to reproduce the behavior: Run slackdump like this
./slackdump -export my-workspace.zip C031LU2KL8B
Expected behavior Entire data should be downloaded.
Output It continued logging for 10mins and then failed.
Desktop (please complete the following information):
Additional context This channel is a slack connect private channel. However, there are other private channels also which are slack connect channels in this same workspace for which i'm able to download the data.