Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Failed to delete ->" on a lot of images... #67

Open
ryanxkh opened this issue Jul 19, 2018 · 4 comments
Open

Getting "Failed to delete ->" on a lot of images... #67

ryanxkh opened this issue Jul 19, 2018 · 4 comments

Comments

@ryanxkh
Copy link

ryanxkh commented Jul 19, 2018

Getting this on A LOT of files.... I ran the following:

slack-cleaner --token xxxxxxxxxxxxxxx --file --types snippets,images

Failed to delete ->
{   'channels': ['CAEABN55M'],
    'comments_count': 0,
    'created': 1529417675,
    'display_as_bot': False,
    'editable': False,
    'external_type': '',
    'filetype': 'jpg',
    'groups': [],
    'id': 'FB9JWMTL1',
    'image_exif_rotation': 1,
    'ims': [],
    'is_external': False,
    'is_public': True,
    'mimetype': 'image/jpeg',
    'mode': 'hosted',
    'name': 'Image uploaded from iOS.jpg',
    'original_h': 5079,
    'original_w': 3726,
    'permalink': 'https://dfspowerhour.slack.com/files/U7Y8BL5G9/FB9JWMTL1/image_uploaded_from_ios.jpg',
    'permalink_public': 'https://slack-files.com/T50LX5FEF-FB9JWMTL1-082e15034f',
    'pretty_type': 'JPEG',
    'public_url_shared': False,
    'size': 672210,
    'thumb_1024': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_1024.jpg',
    'thumb_1024_h': 1024,
    'thumb_1024_w': 751,
    'thumb_160': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_160.jpg',
    'thumb_360': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_360.jpg',
    'thumb_360_h': 360,
    'thumb_360_w': 264,
    'thumb_480': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_480.jpg',
    'thumb_480_h': 480,
    'thumb_480_w': 352,
    'thumb_64': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_64.jpg',
    'thumb_720': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_720.jpg',
    'thumb_720_h': 720,
    'thumb_720_w': 528,
    'thumb_80': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_80.jpg',
    'thumb_800': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_800.jpg',
    'thumb_800_h': 1090,
    'thumb_800_w': 800,
    'thumb_960': 'https://files.slack.com/files-tmb/T50LX5FEF-FB9JWMTL1-f94c9acfef/image_uploaded_from_ios_960.jpg',
    'thumb_960_h': 960,
    'thumb_960_w': 704,
    'timestamp': 1529417675,
    'title': 'Slack for iOS Upload',
    'url_private': 'https://files.slack.com/files-pri/T50LX5FEF-FB9JWMTL1/image_uploaded_from_ios.jpg',
    'url_private_download': 'https://files.slack.com/files-pri/T50LX5FEF-FB9JWMTL1/download/image_uploaded_from_ios.jpg',
    'user': 'U7Y8BL5G9',
    'username': ''}
@automattf
Copy link

I have the same issue.

@udovicic
Copy link

udovicic commented Sep 3, 2018

It is probably the rate limit problem, use --rate 1 as parameter. It will be a lot slower, but a lot more efficient.

@automattf
Copy link

I actually ended up figuring out that the api was raising an error along the lines of “too many requests for this url”

Changing the rate will probably fix it. Thanks dude

@marianobe
Copy link

Same issue, --rate 1 wont fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants