vladimiry / ElectronMail

Unofficial ProtonMail Desktop App
GNU General Public License v3.0
1.5k stars 97 forks source link

Can't access Proton Calendar and change ProtonMail settings #457

Closed noelsimbolon closed 2 years ago

noelsimbolon commented 2 years ago

Every time when trying to access Proton Calendar or change ProtonMail settings, it throws up an error.

Versions:

ElectronMail v4.12.9
Electron: 15.0.0
Chromium: 94.0.4606.51
Node: 16.5.0
V8: 9.4.146.16-electron.0

elec

This is what the log.log file shows:

[2021-11-10 21:41:40.309] [error] src\electron-main\web-contents.ts {"level":3,"message":"AppVersionBadError: App version outdated","line":6263,"sourceId":"webclient1://mail.protonmail.com/calendar/index.dc2ba803.js"}
[2021-11-10 21:41:40.313] [error] src\web\browser-window\app\_accounts\account.component.ts AccountComponent webview event {"type":"console-message","level":3,"message":"AppVersionBadError: App version outdated","line":6263,"sourceId":"webclient1://mail.protonmail.com/calendar/index.dc2ba803.js"}
[2021-11-10 21:41:41.693] [error] src\electron-main\web-contents.ts {"level":3,"message":"AppVersionBadError: App version outdated","line":6263,"sourceId":"webclient1://mail.protonmail.com/calendar/index.dc2ba803.js"}
[2021-11-10 21:41:41.695] [error] src\web\browser-window\app\_accounts\account.component.ts AccountComponent webview event {"type":"console-message","level":3,"message":"AppVersionBadError: App version outdated","line":6263,"sourceId":"webclient1://mail.protonmail.com/calendar/index.dc2ba803.js"}
vladimiry commented 2 years ago

Thanks for the report. I can confirm the issue.

The app version assembled from the https://github.com/vladimiry/ElectronMail/tree/wip branch works well (it goes with an updated @ProtonMail client stack). So it looks like @ProtonMail has recently deprecated the calendar/settings web clients versions they were ok using at Sep 27, 2021 (v4.12.9 release date). I guess it was caused by the calendar/settings-related Rest API format change (so the old web client is not able to properly communicate with an updated API/backend).

The app by design goes with a @ProtonMail web clients packed into the app as a static resource. So to fix the issue I will need to publish a new app release with an updated @ProtonMail web clients stack which I'm ok to do within a few next days. Alternatively, you can build the app package on your own from the wip branch.

vladimiry commented 2 years ago

New release is on the way.

vladimiry commented 2 years ago

The v4.13.0 release has just been published.