#15558·AFFiNE

[Bug]: *Connection failed* while adding Gemini AI Provider using AI BYOK (Beta)

Author: pr11m3Created Sep 2, 2026Updated Sep 13, 2026

What happened?

It says Connection failed.

Distribution version

Windows x64

App Version

electron · 0.27.4

What browsers are you seeing the problem on if you're using web version?

No response

Are you self-hosting?

  • Yes

Self-hosting Version

v0.27.4

Relevant log output

I dont think so the logs are relevant.

03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM     LOG [MonitorService] memory usage: rss: 228659200, heapTotal: 119304192, heapUsed: 112933568, external: 5971786, arrayBuffers: 854197
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM   DEBUG [JobQueue] Job [inviteAbuse.executePendingActions] added; id=invite-abuse-execute-pending-actions
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM   DEBUG [JobQueue] Job [indexer.autoIndexWorkspaces] added; id=autoIndexWorkspaces
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM   DEBUG [JobQueue] Job [doc.findEmptySummaryDocs] added; id=findEmptySummaryDocs
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM   DEBUG [JobQueue] Job [doc.recordPendingDocUpdatesCount] added; id=doc%3Arecord-pending-updates-count
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM VERBOSE [job] <selfhosted:job:76e11f41-96cb-4d60-b0a3-b57896f321ac> Job started: [doc.recordPendingDocUpdatesCount] (DocServiceCronJob.recordPendingDocUpdatesCount, id=doc%3Arecord-pending-updates-count)
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM VERBOSE [job] <selfhosted:job:76e11f41-96cb-4d60-b0a3-b57896f321ac> Object(0) {}
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM VERBOSE [job] <selfhosted:job:de6ec3e0-785c-4763-9207-29f832f88000> Job started: [inviteAbuse.executePendingActions] (InviteAbuseDispositionService.executePendingActions, id=invite-abuse-execute-pending-actions)
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM VERBOSE [job] <selfhosted:job:de6ec3e0-785c-4763-9207-29f832f88000> Object(0) {}
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM VERBOSE [job] <selfhosted:job:de6ec3e0-785c-4763-9207-29f832f88000> Job finished: [inviteAbuse.executePendingActions] (InviteAbuseDispositionService.executePendingActions, id=invite-abuse-execute-pending-actions)
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM VERBOSE [job] <selfhosted:job:de6ec3e0-785c-4763-9207-29f832f88000> Object(3) {
03.09.2026 12:30:00 AM [affine-affine-1]   signature: '[inviteAbuse.executePendingActions] (InviteAbuseDispositionService.executePendingActions, id=invite-abuse-execute-pending-actions)',
03.09.2026 12:30:00 AM [affine-affine-1]   signal: undefined,
03.09.2026 12:30:00 AM [affine-affine-1]   cost: 3
03.09.2026 12:30:00 AM [affine-affine-1] }
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM VERBOSE [job] <selfhosted:job:76e11f41-96cb-4d60-b0a3-b57896f321ac> Job finished: [doc.recordPendingDocUpdatesCount] (DocServiceCronJob.recordPendingDocUpdatesCount, id=doc%3Arecord-pending-updates-count)
03.09.2026 12:30:00 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:00 PM VERBOSE [job] <selfhosted:job:76e11f41-96cb-4d60-b0a3-b57896f321ac> Object(3) {
03.09.2026 12:30:00 AM [affine-affine-1]   signature: '[doc.recordPendingDocUpdatesCount] (DocServiceCronJob.recordPendingDocUpdatesCount, id=doc%3Arecord-pending-updates-count)',
03.09.2026 12:30:00 AM [affine-affine-1]   signal: undefined,
03.09.2026 12:30:00 AM [affine-affine-1]   cost: 4
03.09.2026 12:30:00 AM [affine-affine-1] }
03.09.2026 12:30:01 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:01 PM VERBOSE [job] <selfhosted:job:ac906f9a-6b8b-479e-bae9-bbc705c0023a> Job started: [indexer.autoIndexWorkspaces] (IndexerJob.autoIndexWorkspaces, id=autoIndexWorkspaces)
03.09.2026 12:30:01 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:01 PM VERBOSE [job] <selfhosted:job:ac906f9a-6b8b-479e-bae9-bbc705c0023a> Object(1) {
03.09.2026 12:30:01 AM [affine-affine-1]   lastIndexedWorkspaceSid: 2
03.09.2026 12:30:01 AM [affine-affine-1] }
03.09.2026 12:30:01 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:01 PM VERBOSE [job] <selfhosted:job:ac906f9a-6b8b-479e-bae9-bbc705c0023a> Job finished: [indexer.autoIndexWorkspaces] (IndexerJob.autoIndexWorkspaces, id=autoIndexWorkspaces)
03.09.2026 12:30:01 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:01 PM VERBOSE [job] <selfhosted:job:ac906f9a-6b8b-479e-bae9-bbc705c0023a> Object(3) {
03.09.2026 12:30:01 AM [affine-affine-1]   signature: '[indexer.autoIndexWorkspaces] (IndexerJob.autoIndexWorkspaces, id=autoIndexWorkspaces)',
03.09.2026 12:30:01 AM [affine-affine-1]   signal: 'repeat',
03.09.2026 12:30:01 AM [affine-affine-1]   cost: 1
03.09.2026 12:30:01 AM [affine-affine-1] }
03.09.2026 12:30:01 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:01 PM   DEBUG [job] <selfhosted:event:5441fe11-cb2b-4a5b-b181-b742de980778> Added job [indexer.autoIndexWorkspaces] to queue, signal=repeat
03.09.2026 12:30:02 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:02 PM VERBOSE [job] <selfhosted:job:2742bf26-b92f-4e9f-97f7-435e16f004d8> Job started: [doc.findEmptySummaryDocs] (DocServiceCronJob.findEmptySummaryDocs, id=findEmptySummaryDocs)
03.09.2026 12:30:02 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:02 PM VERBOSE [job] <selfhosted:job:2742bf26-b92f-4e9f-97f7-435e16f004d8> Object(1) {
03.09.2026 12:30:02 AM [affine-affine-1]   lastFixedWorkspaceSid: 2
03.09.2026 12:30:02 AM [affine-affine-1] }
03.09.2026 12:30:02 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:02 PM VERBOSE [job] <selfhosted:job:2742bf26-b92f-4e9f-97f7-435e16f004d8> Job finished: [doc.findEmptySummaryDocs] (DocServiceCronJob.findEmptySummaryDocs, id=findEmptySummaryDocs)
03.09.2026 12:30:02 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:02 PM VERBOSE [job] <selfhosted:job:2742bf26-b92f-4e9f-97f7-435e16f004d8> Object(3) {
03.09.2026 12:30:02 AM [affine-affine-1]   signature: '[doc.findEmptySummaryDocs] (DocServiceCronJob.findEmptySummaryDocs, id=findEmptySummaryDocs)',
03.09.2026 12:30:02 AM [affine-affine-1]   signal: 'repeat',
03.09.2026 12:30:02 AM [affine-affine-1]   cost: 1
03.09.2026 12:30:02 AM [affine-affine-1] }
03.09.2026 12:30:02 AM [affine-affine-1] [Nest] 1  - 09/02/2026, 6:30:02 PM   DEBUG [job] <selfhosted:event:5441fe11-cb2b-4a5b-b181-b742de980778> Added job [doc.findEmptySummaryDocs] to queue, signal=repeat

Anything else?

It was working before.

Is your content generated by AI?

  • I confirm that the content I submitted was not generated by AI / merely contained minimal AI edits.