Closed mauricioszabo closed 4 years ago
π
My env:
Post git clone, I started with $ npm ci
, then $ npm start
Inside the console you should see something similar:
$ npm start
> protonmail-web@3.16.20 start /private/tmp/WebClient
> ./node_modules/proton-bundler/scripts/createVersionJSON.sh && cros
NV=dev tasks/setupConfig.js
[commit]
[tag]
[output] build/assets/version.json
β Generate configuration
β Api: https://mail.protonmail.com/api
β Sentry: undefined
β Dev server: http://localhost:8080
β Dev server: http://192.168.1.122:8080
> protonmail-web@3.16.20 poststart /private/tmp/WebClient
> npm run dev
β Api: https://mail.protonmail.com/api
I can access to my account on http://localhost:8080
. What's your browser ?
Maybe the issue comes from a plugin ex: Β΅Matrix.
My env: Node: v12.13.0 NPM: 6.12.0 Ubuntu 18.04, using Brave Browser
I wasn't running the npm ci
command. Now that I did, there's another issue on the console:
GET https://mail.protonmail.com/api/settings 401 (Unauthorized)
mail.protonmail.com/api/addresses:1 GET https://mail.protonmail.com/api/addresses 401 (Unauthorized)
mail.protonmail.com/api/settings/mail:1 GET https://mail.protonmail.com/api/settings/mail 401 (Unauthorized)
mail.protonmail.com/api/contacts/emails?PageSize=1000:1 GET https://mail.protonmail.com/api/contacts/emails?PageSize=1000 401 (Unauthorized)
mail.protonmail.com/api/auth/refresh:1 POST https://mail.protonmail.com/api/auth/refresh 400 (Bad Request)
networkActivityTracker.js?a074:30
{data: {β¦}, status: 401, headers: Ζ, config: {β¦}, statusText: "Unauthorized", β¦}
I expanded the last error and it shows this:
config: {method: "GET", transformRequest: Array(1), transformResponse: Array(1), paramSerializer: Ζ, jsonpCallbackParam: "callback", β¦}
data: {Code: 401, Error: "Invalid access token", ErrorDescription: "", Details: {β¦}}
headers: Ζ (name)
noNotify: true
status: 401
statusText: "Unauthorized"
xhrStatus: "complete"
__proto__: Object```
It's an issue with brave you need to change an option cf
Select: All cookies allowed
It's something we need to do on localhost.
I'm following the instructions on the README, but I can't login on my current account while developing locally, but when I run
npm start
, the interface works fine but I can't login.On the devtools, these are logged: