hfaran / slack-export-viewer

A Slack Export archive viewer that allows you to easily view and share your Slack team's export
https://pypi.python.org/pypi/slack-export-viewer
MIT License
966 stars 193 forks source link

Access to localhost was deniedYou don't have authorization to view this page. HTTP ERROR 403 #196

Open milesfleisher opened 5 months ago

milesfleisher commented 5 months ago
Screenshot 2024-07-01 at 6 31 16 PM

Hi!

I setup my workspace using the command slack-export-viewer -z /path/to/zip. It seemed to work and listed all the channels and opened chrome but then gave me an error saying "Access to localhost was deniedYou don't have authorization to view this page. HTTP ERROR 403."

As of now my localhost file is shown in the image

alexbrothman commented 4 months ago

I'm also running into this. Currently using macOS 14.5 on an M3 MBA. The last time I successfully used the export viewer was on a different laptop (M2 MBA on 14.4) over two months ago.

milesfleisher commented 4 months ago

Do you have any thoughts on how to fix this on my end?

On Jul 19, 2024, at 10:26 AM, Alex Brothman @.***> wrote:

I'm also running into this. Currently using macOS 14.5 on an M3 MBA. The last time I successfully used the export viewer was on a different laptop (M2 MBA on 14.4) over two months ago.

— Reply to this email directly, view it on GitHub https://github.com/hfaran/slack-export-viewer/issues/196#issuecomment-2239722881, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJTHUW5BJM4ZDBEP36IRRTZNFD5LAVCNFSM6AAAAABKGRZXP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZZG4ZDEOBYGE. You are receiving this because you authored the thread.

Fangdali123 commented 4 months ago

change port to 8000

ref: https://stackoverflow.com/questions/72795799/how-to-solve-403-error-with-flask-in-python

alexbrothman commented 4 months ago

Do you have any thoughts on how to fix this on my end? On Jul 19, 2024, at 10:26 AM, Alex Brothman @.***> wrote: I'm also running into this. Currently using macOS 14.5 on an M3 MBA. The last time I successfully used the export viewer was on a different laptop (M2 MBA on 14.4) over two months ago. — Reply to this email directly, view it on GitHub <#196 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJTHUW5BJM4ZDBEP36IRRTZNFD5LAVCNFSM6AAAAABKGRZXP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZZG4ZDEOBYGE. You are receiving this because you authored the thread.

Not a fix, but I ended up using a Win 11 machine to run it. Worked fine.

milesfleisher commented 4 months ago

When I try to change the port to 8000, it just seems to create a new problem. I did the command slack-export-viewer --port 8000 I get the following error(sorry, I know it’s a long one):

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/bin/slack-export-viewer", line 8, in sys.exit(main()) ^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 783, in invoke return __callback(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/slackviewer/main.py", line 77, in main raise ValueError("Empty path provided for archive") ValueError: Empty path provided for archive **@. ~ % slack-export-viewer -p 8000
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/bin/slack-export-viewer", line 8, in sys.exit(main()) ^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1157, in call return self.main(
args,
kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, *ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/click/core.py", line 783, in invoke return __callback(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/slackviewer/main.py", line 77, in main raise ValueError("Empty path provided for archive") ValueError: Empty path provided for archive

This even happens right after I give it the correct path to the zip file for the export in the previous command and then do command c to exit out of it. I also got the same result when I did -p instead of --path.

On Jul 21, 2024, at 6:58 PM, Fangdali123 @.***> wrote:

change port to 8000

ref: https://stackoverflow.com/questions/72795799/how-to-solve-403-error-with-flask-in-python

— Reply to this email directly, view it on GitHub https://github.com/hfaran/slack-export-viewer/issues/196#issuecomment-2241902885, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJTHUVSLPVCHB7TTYKDPYTZNRRMJAVCNFSM6AAAAABKGRZXP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRHEYDEOBYGU. You are receiving this because you authored the thread.

Begin forwarded message:

From: Fangdali123 @.> Subject: Re: [hfaran/slack-export-viewer] Access to localhost was deniedYou don't have authorization to view this page. HTTP ERROR 403 (Issue #196) Date: July 21, 2024 at 6:58:28 PM PDT To: hfaran/slack-export-viewer @.> Cc: milesfleisher @.>, Author @.> Reply-To: hfaran/slack-export-viewer @.***>

change port to 8000

ref: https://stackoverflow.com/questions/72795799/how-to-solve-403-error-with-flask-in-python

— Reply to this email directly, view it on GitHub https://github.com/hfaran/slack-export-viewer/issues/196#issuecomment-2241902885, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJTHUVSLPVCHB7TTYKDPYTZNRRMJAVCNFSM6AAAAABKGRZXP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRHEYDEOBYGU. You are receiving this because you authored the thread.

hfaran commented 4 months ago

Provide the port and the archive path in the same command. Make sure you're using the right parameter.

image

milesfleisher commented 4 months ago

so should it be:slack-export-viewer -z /path/to/archive -p 8000Sent from my phoneOn Jul 28, 2024, at 12:30 AM, Hamza Faran @.***> wrote: Provide the port and the archive path in the same command. Make sure you're using the right parameter. image.png (view on web)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>