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

Cannot sync data #5

Open
secretfork opened this issue Jul 17, 2024 · 5 comments
Open

Cannot sync data #5

secretfork opened this issue Jul 17, 2024 · 5 comments

Comments

@secretfork
Copy link

secretfork commented Jul 17, 2024

Using Microsoft Edge Version 126.0.2592.102 (Official build) (64-bit) and opennotas installed as a web app
Using Chrome Version 126.0.6478.183 (Official Build) (64-bit) and opennotas installed as a web app

Error from console

Uncaught (in promise)
TypeError: Failed to execute 'put' on 'Cache': Request scheme 'chrome-extension' is unsupported
at sw.js:41:18

@secretfork secretfork changed the title Fails to sync with turso.io in Microsoft Edge Cannot sync data Jul 17, 2024
@tonghoai
Copy link
Owner

It seems like an extension is interfering with the data caching process. Could you provide me with the name of the extension you suspect? I will debug based on that. Thank you!

@secretfork
Copy link
Author

I tried disabling all extensions then trying again. Same result unfortunately. Then I tried pausing on any exceptions, and and something that stuck out to me was this, hopefully it helps

image

@hoaitx1

This comment was marked as duplicate.

1 similar comment
@tonghoai
Copy link
Owner

Oh, I see. It seems like you are manually fetching the Turso configuration, right? You are missing a step for initializing the table for Turso, which is an oversight on my part. I sincerely apologize. You can find the instructions for initializing the table here: https://t.me/opennotas/66.

CREATE TABLE
  `folders` (
    `id` text PRIMARY KEY NOT NULL,
    `name` text,
    `createdAt` integer,
    `updatedAt` integer,
    `deletedAt` integer,
    `lastSync` integer
  );

CREATE TABLE
  `notes` (
    `id` text PRIMARY KEY NOT NULL,
    `folderId` text,
    `content` text,
    `isPinned` integer,
    `isLocked` integer,
    `createdAt` integer,
    `updatedAt` integer,
    `deletedAt` integer,
    `lastSync` integer,
    `deleteCompletelyAt` integer
  );

CREATE TABLE
  `settings` (
    `id` text PRIMARY KEY NOT NULL,
    `password` text,
    `updatedAt` integer,
    `lastSync` integer
  );

@secretfork
Copy link
Author

That was indeed the problem! Seems to me that https://docs.opennotas.io/started/setup-sync/turso#manual-retrieval may need some updating. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants