-
Notifications
You must be signed in to change notification settings - Fork 192
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
IndexError: list index out of range #63
Comments
Hey @accuratefeed can you add your channels.json file or a snippet of it. The only reason I can see this happening is because there are no channels at all. But if that's not the case I can test with your data. |
Hi @tscritch thanks for replying so quickly. The channels.json file is indeed empty. I contacted slack about this and they're not sure why it's empty either. I do have the folder of the channel I'm trying to view though and the other json files such as users.json has data in it. I'm really just trying to put this 1 channel in a viewable format, so if you have any other suggestions, please let me know! |
Wow. Interesting! haha |
@tscritch I was able to find a channels.json with data in it. Now I'm getting the following error:
|
Ah jeez haha it looks like that would be a character it can't read for some reason... I'm not too experienced with that stuff. @hfaran any insight? |
I was able to get what I needed using levelsio's script, which I believe this script was based off of. Any idea if hfaran's script is using utf8 or latin1 to decode? Just curious. |
Ok great. |
@tscritch Looking at the stack trace that @accuratefeed posted, the bug is here: slack-export-viewer/slackviewer/reader.py Lines 145 to 147 in 5d9608d
You're missing the |
Committed the fix, but I'm gonna wait until your next PR goes to make a new release |
Actually, I went ahead and released 0.6.0. @accuratefeed please try it |
I saw #24 and I thought this issue was fixed. I'm getting the following error:
`PS C:\Users\AccurateFeed\downloads> slack-export-viewer --archive ldrs.zip
ldrs.zip extracting to C:\Users\AccurateFeed\AppData\Local\Temp\2_slackviewer\5e226d974f1b15de666dab44c8ea52f329d39587...
ldrs.zip extracted to C:\Users\AccurateFeed\AppData\Local\Temp\2_slackviewer\5e226d974f1b15de666dab44c8ea52f329d39587.
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
127.0.0.1 - - [02/May/2018 09:10:57] "GET / HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\werkzeug\serving.py", line 270, in run_wsgi
execute(self.server.app)
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\werkzeug\serving.py", line 258, in execute
application_iter = app(environ, start_response)
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\flask\app.py", line 2309, in call return self.wsgi_app(environ, start_response)
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\flask\app.py", line 2295, in wsgi_app response = self.handle_exception(e)
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\flask\app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\flask\app.py", line 2292, in wsgi_app response = self.full_dispatch_request()
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\flask\app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "c:\users\AccurateFeed\appdata\local\programs\python\python36-32\lib\site-packages\slackviewer\app.py", line 81, in index
return channel_name(channels[0])
IndexError: list index out of range`
The text was updated successfully, but these errors were encountered: