slack-export-viewer icon indicating copy to clipboard operation
slack-export-viewer copied to clipboard

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

Open milesfleisher opened this issue 1 year ago • 7 comments

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

milesfleisher avatar Jul 02 '24 01:07 milesfleisher

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.

alexbrothman avatar Jul 19 '24 17:07 alexbrothman

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.

milesfleisher avatar Jul 20 '24 17:07 milesfleisher

change port to 8000

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

Fangdali123 avatar Jul 22 '24 01:07 Fangdali123

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.

alexbrothman avatar Jul 22 '24 17:07 alexbrothman

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.

milesfleisher avatar Jul 26 '24 06:07 milesfleisher

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

image

hfaran avatar Jul 28 '24 07:07 hfaran

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: @.***>

milesfleisher avatar Jul 28 '24 23:07 milesfleisher