[Bug]: Can't login with Google on Windows Desktop
What happened?
Just downloaded and installed AFFiNE for Windows for the very first time, and clicking the [Continue with Google] button does nothing. Clicking the [Continue with Apple] button correctly opens an Apple login page in my browser.
AFFiNE v0.25.1 Desktop Windows 11 Pro v23H2 OS build 22631.6133
Distribution version
Windows x64
App Version
0.25.1
What browsers are you seeing the problem on if you're using web version?
No response
Are you self-hosting?
- [ ] Yes
Self-hosting Version
No response
Relevant log output
language-sync.ts:13 Error: Error invoking remote method 'affine-ipc-api': Error: An object could not be cloned.
(anonymous) @ language-sync.ts:13
VM5:24874 [preload] helper-connection Object
share-page.tsx:190 Error: Doc record not found
at DocsService.open (docs.ts:107:13)
at share-page.tsx:168:58
(anonymous) @ share-page.tsx:190
VM5:24874 [preload] helper-connection Object
app.affine.pro/api/workspaces/8b60be7d-68cb-4bfb-a934-e5c8d6287a86/docs/8b60be7d-68cb-4bfb-a934-e5c8d6287a86:1
Failed to load resource: the server responded with a status of 403 ()
doc-static.ts:67 SPACE_ACCESS_DENIED: You do not have permission to access Space 8b60be7d-68cb-4bfb-a934-e5c8d6287a86.
at UserFriendlyError.fromAny (file://./js/2440.a60dabcc.js:17:41186)
at HttpConnection.fetch (file://./js/3878.64b56fcd.js:1:4340)
at async HttpConnection.fetchArrayBuffer (file://./js/3878.64b56fcd.js:1:4454)
at async StaticCloudDocStorage.getDocSnapshot (file://./js/3878.64b56fcd.js:1:8626)
at async StaticCloudDocStorage.getDoc (file://./js/5270.b20d68a4.js:1:2512)
getDocSnapshot @ doc-static.ts:67
app.affine.pro/api/workspaces/8b60be7d-68cb-4bfb-a934-e5c8d6287a86/docs/db$pinnedCollections:1
Failed to load resource: the server responded with a status of 403 ()
doc-static.ts:67 DOC_ACTION_DENIED: You do not have permission to perform Doc.Read action on doc db$pinnedCollections.
at UserFriendlyError.fromAny (file://./js/2440.a60dabcc.js:17:41186)
at HttpConnection.fetch (file://./js/3878.64b56fcd.js:1:4340)
at async HttpConnection.fetchArrayBuffer (file://./js/3878.64b56fcd.js:1:4454)
at async StaticCloudDocStorage.getDocSnapshot (file://./js/3878.64b56fcd.js:1:8626)
at async StaticCloudDocStorage.getDoc (file://./js/5270.b20d68a4.js:1:2512)
getDocSnapshot @ doc-static.ts:67
app.affine.pro/api/workspaces/8b60be7d-68cb-4bfb-a934-e5c8d6287a86/docs/db$folders:1
Failed to load resource: the server responded with a status of 403 ()
doc-static.ts:67 DOC_ACTION_DENIED: You do not have permission to perform Doc.Read action on doc db$folders.
at UserFriendlyError.fromAny (file://./js/2440.a60dabcc.js:17:41186)
at HttpConnection.fetch (file://./js/3878.64b56fcd.js:1:4340)
at async HttpConnection.fetchArrayBuffer (file://./js/3878.64b56fcd.js:1:4454)
at async StaticCloudDocStorage.getDocSnapshot (file://./js/3878.64b56fcd.js:1:8626)
at async StaticCloudDocStorage.getDoc (file://./js/5270.b20d68a4.js:1:2512)
getDocSnapshot @ doc-static.ts:67
app.affine.pro/api/workspaces/8b60be7d-68cb-4bfb-a934-e5c8d6287a86/docs/db$explorerIcon:1
Failed to load resource: the server responded with a status of 403 ()
doc-static.ts:67 DOC_ACTION_DENIED: You do not have permission to perform Doc.Read action on doc db$explorerIcon.
at UserFriendlyError.fromAny (file://./js/2440.a60dabcc.js:17:41186)
at HttpConnection.fetch (file://./js/3878.64b56fcd.js:1:4340)
at async HttpConnection.fetchArrayBuffer (file://./js/3878.64b56fcd.js:1:4454)
at async StaticCloudDocStorage.getDocSnapshot (file://./js/3878.64b56fcd.js:1:8626)
at async StaticCloudDocStorage.getDoc (file://./js/5270.b20d68a4.js:1:2512)
getDocSnapshot @ doc-static.ts:67
app.affine.pro/api/workspaces/8b60be7d-68cb-4bfb-a934-e5c8d6287a86/docs/db$docProperties:1
Failed to load resource: the server responded with a status of 403 ()
doc-static.ts:67 DOC_ACTION_DENIED: You do not have permission to perform Doc.Read action on doc db$docProperties.
at UserFriendlyError.fromAny (file://./js/2440.a60dabcc.js:17:41186)
at HttpConnection.fetch (file://./js/3878.64b56fcd.js:1:4340)
at async HttpConnection.fetchArrayBuffer (file://./js/3878.64b56fcd.js:1:4454)
at async StaticCloudDocStorage.getDocSnapshot (file://./js/3878.64b56fcd.js:1:8626)
at async StaticCloudDocStorage.getDoc (file://./js/5270.b20d68a4.js:1:2512)
getDocSnapshot @ doc-static.ts:67
app.affine.pro/api/workspaces/8b60be7d-68cb-4bfb-a934-e5c8d6287a86/docs/db$docCustomPropertyInfo:1
Failed to load resource: the server responded with a status of 403 ()
doc-static.ts:67 DOC_ACTION_DENIED: You do not have permission to perform Doc.Read action on doc db$docCustomPropertyInfo.
at UserFriendlyError.fromAny (file://./js/2440.a60dabcc.js:17:41186)
at HttpConnection.fetch (file://./js/3878.64b56fcd.js:1:4340)
at async HttpConnection.fetchArrayBuffer (file://./js/3878.64b56fcd.js:1:4454)
at async StaticCloudDocStorage.getDocSnapshot (file://./js/3878.64b56fcd.js:1:8626)
at async StaticCloudDocStorage.getDoc (file://./js/5270.b20d68a4.js:1:2512)
getDocSnapshot @ doc-static.ts:67
consumer.ts:149 [IndexerSync] paused
Anything else?
No response
Issue Status: 🆕 *Untriaged
*🆕 Untriaged
The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md
This is an automatic reply by the bot.
which default browser you using?
Chrome, but I also have Chrome Beta installed.
What is ODD is that when I go into my default apps and select Chrome, there is a message that says "Make Google Chrome your default browser", even though as far as I know it is already my default. When I click on any URL, link, etc, it opens Chrome.
When I click [Set default] nothing happens - the message is still there when I go back. I get the same exact message for Chrome Beta and Edge.
I tested the install on Windows Sandbox and it worked fine, so it is definitely something on my machine. But I figured you might want to determine the issue anyways for future reference.
Let me know if I can get you logs or anything.
Thanks!
Hi @PwrSrg 👋
Thanks for the detailed info — this actually helps narrow down the root cause.
AFFiNE Desktop opens the Google OAuth login page using your system's default browser.
If Windows fails to return a valid default-browser handler, the app cannot launch the Google login window — which is why clicking [Continue with Google] does nothing.
The symptoms you showed:
- Windows saying "Make Google Chrome your default browser" even when it already is
- Clicking [Set default] doing nothing
- Same behavior for Chrome Beta and Edge
- Works correctly on Windows Sandbox
…strongly suggest that Windows’ Default Apps registry association is broken on your system.
AFFiNE relies on the Windows “URL Handler” registry keys such as:
If these entries are corrupted, empty, or point to an invalid browser entry, the Google login cannot open.
✔️ To help confirm this
Could you share the output of the following PowerShell command?
Get-ItemProperty "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice"