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

KeyError: 'paging' on get_file_list() #15

Open
nanpuhaha opened this issue Oct 31, 2022 · 1 comment
Open

KeyError: 'paging' on get_file_list() #15

nanpuhaha opened this issue Oct 31, 2022 · 1 comment

Comments

@nanpuhaha
Copy link

D:\slack-exporter> python exporter.py -o ./json --json -c -r --files
...
Writing output to D:\slack-exporter\json\slack_export_10-31-2022_221332\channel_A1B2C3D4E5F.json
Writing output to D:\slack-exporter\json\slack_export_10-31-2022_221332\channel-replies_A1B2C3D4E5F.json
...
Traceback (most recent call last):
  File "D:\slack-exporter\exporter.py", line 547, in <module>
    save_files(out_dir)
  File "D:\slack-exporter\exporter.py", line 404, in save_files
    for file_info in get_file_list():
  File "D:\slack-exporter\exporter.py", line 152, in get_file_list
    total_pages = json_data["paging"]["pages"]
KeyError: 'paging'
@TheSteveHan
Copy link

Check that you have the right scope. for me I'm missing files:read in my bot

Here's the json_data object.
{'ok': False, 'error': 'missing_scope', 'needed': 'files:read', 'provided': 'identify,channels:history,groups:history,im:history,mpim:history,channels:read,groups:read,im:read,mpim:read,users:read'}

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

2 participants