Comments (12)
@yoshimotomasahir Thanks for the file that you shared. I got some good news! I was able to reproduce the issue, will bee looking into fixing it.
from slackdump.
The bot appears to be a bot made by users with using Workflow Builder. I could not access the details of that bot.
It is possible that the users created an inappropriate Workflow.
Workspaces which have the same issues is a paid. So, the issue would not be urgent.
from slackdump.
The fix has been created and merged upstream (slack-go/slack#1131), and will make it through in v3.0.0 once it's released!
from slackdump.
Also @yoshimotomasahir thanks for your donation ❤️
from slackdump.
Hey @yoshimotomasahir thanks for the feedback :) It looks like yet another edge case when API returns something that is not expected by slack library. I have prepared the tool to address these type of problems (this issue looks similar to #109 and #115)
The tool is attached to this comment: #109 (comment)
would you be able to run this tool like this:
rawoutput.exe C0XXXXXXX
replacing the C0XXXXXXX with the actual channel ID?
It will generate the slackdump_raw.log file which is a dump of headers and JSON output from the API.
Could you then search for substring:
"blocks": "
I.e. it would look like this: {"message": { ...., "blocks": "xxxxxx", ... } }
and post the enclosed message JSON object { ...., "blocks": "xxxxxx", ... }
here? Make sure to replace any sensitive information within that message please.
Thank you )
from slackdump.
@rusq
Thank you very much for your quick reply.
I have output slackdump_raw.log from rawoutput.exe.
I've removed the sensitive information, but I think I should not to post it on public github, so I will email you the json text file.
If you can not see it, it's my problem, so don't worry about the issue.
from slackdump.
The issue is with this block:
{
"type": "date",
"timestamp": 1636961629,
"format": "{date_long} {time_secs}"
},
Block type "date" is not currently supported by upstream library. These are the supported blocks: https://github.com/slack-go/slack/blob/master/block.go#L11
Scrape that, rushing to conclusions.
from slackdump.
Some workflows that can be used with paid subscriptions was set in the channel. It may be related.
https://slack.com/intl/en-gb/help/articles/360053571454-Set-up-a-workflow-in-Slack
from slackdump.
@yoshimotomasahir It's quite possible that the bot that sent that message with the invalid type of the timestamp is serialising the timestamp incorrectly as an integer. I have raised the issue with slack-go/slack (linked above), would be interesting what they'll say.
The issue happens because the type for the timestamp for the RichText Block Element type Date is defined as string (see https://github.com/slack-go/slack/blob/master/block_rich_text.go#L330) but the bot that sent the message, sends it as a number. When the library tries to load the JSON returned by the API, it fails, because it expects the string.
This is the header of the message:
"type": "message",
"subtype": "bot_message",
"text": "XXXXXXXXX",
"ts": "1636961664.000300",
"username": "XXXXXXXXX",
"bot_id": "B0XXXXXXXXX",
In the original file it would contain the username of the bot - is it one of the paid subscription bots, would you be able to tell?
from slackdump.
Still waiting for the new version, @rusq do you have any plans to release this in near future?
from slackdump.
Hey @dmi3-bu, appreciate the wait. I do have a feeling that this upstream change has already made it to v2 branch, but I won't bet my life on it just yet 😂 Will check tonight and let you know.
from slackdump.
@dmi3-bu @yoshimotomasahir I've merged the updated lib into master, will release 2.2.8 shortly!
from slackdump.
Related Issues (20)
- 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
- How to export direct messages? HOT 1
- Attachments downloaded in standard export although no -download flag HOT 4
- Selective attachments download (i.e. only private/only public) HOT 1
- Callback error when exporting conversation HOT 11
- Add an homebrew installation method HOT 1
- Slack reports browser is not supported during login HOT 1
- Crashes on Linux and Windows HOT 2
- Incremental backup script is empty HOT 2
- failed to initialise the auth provider HOT 8
- Migrate off survey
- Leakless triggering false positive on Windows HOT 1
- Support Slack Email Challenge during EZ Login HOT 1
- Add support for exporting own messages only from timeframe HOT 4
- Chromium doesn't get launched on Guix HOT 10
- User export: Allow `-download` flag to also fetch avatars 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.