Comments (9)
I have this exact same issue both running as a normal npm app and as a container.
from send.
OK. I found a solution. Open server/config.js in any editor and change this line:
fxa_required: { format: Boolean, default: true, env: 'FXA_REQUIRED' },
to:
fxa_required: { format: Boolean, default: false, env: 'FXA_REQUIRED' },
from send.
It worked for me
from send.
Me too - How'd you find the fix? Someone else posted a new 401 error with that as an ENV variable. Couldn't find it in the docs, but I'm sure that's just b/c i'm skimming. It also makes sense since they're changing how the service can be used to mandate auth...
from send.
Well, let me explain, take a look at this code where the 401 error occurs:
if (config.fxa_required && !user) { ws.send( JSON.stringify({ error: 401 }) ); return ws.close(); }
(taken from https://github.com/mozilla/send/blob/master/server/routes/ws.js)
So, it checks if a FXA(Firefox Account) is required and if the client is not authenticated, it gives an error.
In the configuration, Firefox Accounts are required by default but you need a client ID for that and we don't have any.
That's why this happens.
from send.
Well, let me explain, take a look at this code where the 401 error occurs:
if (config.fxa_required && !user) { ws.send( JSON.stringify({ error: 401 }) ); return ws.close(); }
(taken from https://github.com/mozilla/send/blob/master/server/routes/ws.js)So, it checks if a FXA(Firefox Account) is required and if the client is not authenticated, it gives an error.
In the configuration, Firefox Accounts are required by default but you need a client ID for that and we don't have any.
That's why this happens.
With you - except where I saw the error in my console was...I think storage.js or something weird, leading me to think it was some undocumented storage req. I also could be remembering wrong so will have to play a bit later... You just tried to submit something and then watched the console?
In any event...thank you!
from send.
I looked at the network activity and saw the 401 error
from send.
Thanks @okyanusoz! Excited to try it out.
from send.
I tried setting the environment variable FXA_REQUIRED to false
(which is the format convict
expects for boolean env vars) and it didn't help.
from send.
Related Issues (20)
- Create upload URLs using async crypto HOT 2
- Restrict upload permissions
- When will product improvements can be complete? HOT 1
- Implement FPN promo experiment
- The "Report these files as suspicious" link it's not visible if the download page contains multiple files uploaded HOT 1
- The string from the "Files Reported" page has a dark font and is hardly visible when dark mode is enabled HOT 1
- The "link has expired" page is wrongly displayed when returning from the "Report Infringement" page to the download files page using the "Back" button HOT 1
- Upload does not work (web server running properly) HOT 1
- [Mobile][IOS] The "Only 64 files can be uploaded at a time." pop-up is not displayed after trying to upload more than 64 files using the Safari browser
- [Dark Mode] The "Unlock" button and the field's border wrongly remain in the read state after typing a new password HOT 1
- The "Share link" button is displayed instead of the "Copy link" button on Safari and Edge Chromium HOT 2
- [Mobile][IOS] The “Do you want to download <file_name> ” pop-up is not shown after the download is complete for files larger than 50 MB
- [Mobile][IOS] Files larger than 100 MB cannot be are uploaded using the Safari mobile browser
- The `Privacy Notice` is not displayed after clicking the `Privacy` footer link if you are not logged in HOT 1
- The radio buttons on the `Report` page have variable sizes depending on the string size/length HOT 1
- There is a large amount of empty space between the log in card and the footer of the page when the browser is resized to the mobile view
- [Feature Request] Check hash on VirusTotal before upload to Firefox Send HOT 3
- Possible to specify a password longer than the max chars accepted
- 401 Unauthorized when trying to anonymously download a file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from send.