Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knowledge - New files added / existing files deleted are not reflected in the file list presented for Notion after manual sync. #521

Open
sangee2004 opened this issue Sep 17, 2024 · 0 comments
Labels
bug Something isn't working knowledge

Comments

@sangee2004
Copy link

Electron build - d27f9f

Steps to reproduce the problem:

Scenario 1:

  1. Create an assistant
  2. Add knowledge file using "Sync from Notion" option and selecting some file from the file list provided.
  3. Add new pages to notion under the pages that have been selected during the oauth flow.

Pages to which access was given:
Screenshot 2024-09-16 at 4 35 19 PM
Files added - test2 and test3
Screenshot 2024-09-16 at 4 36 38 PM

  1. Edit assistant and use "Sync file" option.
  2. Once sync is done, use "Add Files"-> "Sync from Notion" option.
  3. Search for the files added

They do not show up in the list:

Screenshot 2024-09-16 at 5 15 39 PM Screenshot 2024-09-16 at 5 15 34 PM

Scenario 2:

  1. Create an assistant

  2. Add knowledge file using "Sync from Notion" option and selecting some file from the file list provided.

  3. Delete one of the existing pages from notion under the pages that have been selected during the oauth flow.

  4. Edit assistant and use "Sync file" option.

  5. Once sync is done, use "Add Files"-> "Sync from Notion" option.

  6. Search for the files that was deleted.

Deleted file is still listed in the file list.

Once I choose to add this deleted file using "Add Knowledge", i see the following errors in the logs:

2024-09-17T00:20:33.651Z [server] [ERROR] Error: ENOENT: no such file or directory, stat '/Users/sangeethahariharan/Library/Application Support/acorn/Acorn/workspace/knowledge/integrations/notion/703007b1-0ce8-4ba7-9f3f-98215e96d54c/from desktopui.md'
    at statSync (node:fs:1665:25)
    at t.statSync (node:electron/js2c/node_init:2:5397)
    at l (/Users/sangeethahariharan/acorn/desktop/electron-dist/mac-arm64/Acorn.app/Contents/Resources/app.asar/.next/server/chunks/428.js:1:25122)
    at d (/Users/sangeethahariharan/acorn/desktop/electron-dist/mac-arm64/Acorn.app/Contents/Resources/app.asar/.next/server/chunks/428.js:1:25640)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /Users/sangeethahariharan/acorn/desktop/electron-dist/mac-arm64/Acorn.app/Contents/Resources/app.asar/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:408
    at async rP (/Users/sangeethahariharan/acorn/desktop/electron-dist/mac-arm64/Acorn.app/Contents/Resources/app.asar/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:8043)
    at async r5 (/Users/sangeethahariharan/acorn/desktop/electron-dist/mac-arm64/Acorn.app/Contents/Resources/app.asar/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:18:1139)
    at async doRender (/Users/sangeethahariharan/acorn/desktop/electron-dist/mac-arm64/Acorn.app/Contents/Resources/app.asar/node_modules/next/dist/server/base-server.js:1433:30)
    at async cacheEntry.responseCache.get.routeKind (/Users/sangeethahariharan/acorn/desktop/electron-dist/mac-arm64/Acorn.app/Contents/Resources/app.asar/node_modules/next/dist/server/base-server.js:1594:28) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/Users/sangeethahariharan/Library/Application Support/acorn/Acorn/workspace/knowledge/integrations/notion/703007b1-0ce8-4ba7-9f3f-98215e96d54c/from desktopui.md',
  digest: '375423779'
}
2024-09-17T00:20:33.662Z [client] [ERROR] Uncaught (in promise) Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
@sangee2004 sangee2004 added bug Something isn't working knowledge labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working knowledge
Projects
None yet
Development

No branches or pull requests

1 participant