Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

401 Unauthorized when trying to anonymously download a file #1514

Closed
ioistired opened this issue Aug 23, 2020 · 1 comment
Closed

401 Unauthorized when trying to anonymously download a file #1514

ioistired opened this issue Aug 23, 2020 · 1 comment

Comments

@ioistired
Copy link

ioistired commented Aug 23, 2020

I have Send running at commit f0bbf82. After uploading a file, attempting to download it yields a GET to /api/download/blob/:id. This returns 401 Unauthorized. I suspect that the error is due to an incorrect Authorization header. The Authorization header sent begins with send-v1, but as a result of the download tokens change, the server expects it to begin with Bearer. For now I'm running commit 87d46f7 instead.

Edit: I forgot to include my environment variables.

NODE_ENV=production
DEFAULT_EXPIRE_SECONDS=604800
ANON_MAX_EXPIRE_SECONDS=604800
ANON_MAX_DOWNLOADS=100
ANON_MAX_FILE_SIZE=2684354560
FILE_DIR=/var/lib/send/
FXA_REQUIRED=false
REDIS_HOST=localhost
@ioistired
Copy link
Author

Closing as duplicate of #1513.

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

No branches or pull requests

1 participant