Coder Social home page Coder Social logo

stravo1 / obsidian-gdrive-sync Goto Github PK

View Code? Open in Web Editor NEW
154.0 5.0 2.0 278 KB

sync notes across devices in Obsidian via Google Drive

JavaScript 14.07% TypeScript 83.79% CSS 2.13%
google-drive-api obsidian obsidian-plugin obsidian-vault typescript google-drive obsidian-sync obsidian-gdrive obsidian-google-drive

obsidian-gdrive-sync's Introduction

web developer from India. proficient in Svelte, React, Vue, and Tailwind CSS. currently learning Flutter and native android development.
visit my website to know more!

obsidian-gdrive-sync's People

Contributors

stravo1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

obsidian-gdrive-sync's Issues

sync issue: upload on desktop works great, download on android fails 3/4 through

Hello! Thank you so much for this plugin, it really is quite amazing that you're building this!

I have just tried to sync everything between my desktop:

  1. installed plugin on desktop (linux)
  2. initialised on desktop
  3. everything got pushed to drive (in mydrivefolder/obsidian/vault-name that got created automatically)
  4. created a vault on my phone called vault-name
  5. installed plugin on desktop
  6. the download started
  7. the donwload crashed on 180 files (out of ~230)

I then did some troubleshooting on my phone:

  1. disable plugin and enable; still crashed at 180 files
  2. click the download again from scratch: still crashed at 180 files
  3. deleted all files from the vault manually and clicked to download again from scratch: still crashed at 180 files

I then noticed that the files, upon initialisation, did not get the lastSync property (and the attachment names did not change).

I opened on desktop one of the files that did not sync on android. I edited it. It then added the lastSync property and uploaded it. When I then opened obsidian on android and disabled & enabled the plugin, it downloaded the 181st file (the one that I edited on desktop) and then crashed as before.

So this issue may be related to the fact that those properties are not added at initialisation time? Although it works for 180 of the files and then crashes, while none of the files have those properties added.

I am attaching the error log files here:
verbose-log-gdrive-plugin.md
error-log-gdrive-plugin.md

In other news, I wanted to ask you how this will work with the "attachment name formatting" plugin? It may be an issue given that both plugins rename attachments?

No settings after first uploading a vault

I don't see settings button in plugin after first uploading a vault

Plugin version - 0.9.9.
On version 0.9.5 all working fine

Steps:

  1. copy .obsidian folder with plugin into Ipad
  2. enable plugin, log in and add token
  3. reload plugin via switch button (settings appears)
  4. upload vault into google drive
  5. reload plugin via switch button (settings doesn't appear)

I have tried to add some logs and see an error "unable to complete action: getFilesList BAD URL"
Could somebody help, how to fix it?

Initial upload: no folder creaded

Hi,

the login process was smooth, but I found 2 problems:

  1. I have my vault in a subfolder in Drive. For any reason, I could not install it that it would use my vault in the subfolder.
  2. When I let him use whatever folder, it created /obsidian/myVault. Fine, but when it initially uploaded, it created files with the path in the filename, joined with the slash: "MyVaoult/directory1/subdirectory1/filename1"

Thus, I am sorry, it is not usable for me.

Text cursor teleports to top of page

I've only just started using your plugin, but last night it seems that occasionally when it synced, my cursor would pop to the top of page while typing. Not sure if this is because I accidentally clicked on the metadata date at one point or not, but will update if I can give more details to replicate.

iOS broken

Unfortunately, it seems that iOS is broken. I set up the plugin on desktop on a completely blank project, then copied over the folder to iOS and opened it on Obsidian. The syncing works on Desktop just fine. I am using v0.9.9-beta-7-2.

The following errors occurred:

verbose-log-gdrive-plugin

LOG: received accessToken

LOG: getting vault id

LOG: Exited writeToErrorLogFile

LOG: Entering completeAllPendingSyncs

LOG: Entering getLatestContent

LOG: Exited getLatestContent

LOG: Exiting refreshFilesListInDriveAndStoreInSettings

LOG: Exited writeToErrorLogFile

LOG: Exited writeToErrorLogFile

LOG: Exited checkForConnectivity

LOG: Exited checkForConnectivity

LOG: Entering writeToErrorLogFile

LOG: Exited checkForConnectivity

LOG: Exited writeToErrorLogFile

LOG: Exiting refreshFilesListInDriveAndStoreInSettings

LOG: Exiting refreshFilesListInDriveAndStoreInSettings

LOG: Exited writeToErrorLogFile

LOG: Entering writeToErrorLogFile

LOG: Too many errors within a minute. Halting all operations.

error-log-gdrive-plugin

Wed Apr 24 2024 02:27:54 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@

Wed Apr 24 2024 02:27:54 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@

Wed Apr 24 2024 02:27:54 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@

Wed Apr 24 2024 02:27:54 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@

Wed Apr 24 2024 02:27:55 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@

Wed Apr 24 2024 02:27:55 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@

Wed Apr 24 2024 02:27:56 GMT-0500 (Central Time)-Error-FATAL ERROR: Too many errors within a minute.-@
@

Clicking "open this link to login" doesn't work

Steps to reproduce

  • Install plugin
  • Find plugin in Settings โ†’ Community plugins โ†’ Google drive sync
  • Click "Open this link to login"

Result

  • Obsidian shuts down completely
  • No additional browser window opens

Expected result

  • Google login page should appear, providing a token to use

Why isn't this in the Obsidian Plugins List

Hey! I'm wanting to use this to sync my notes, but I'm wanting to avoid manually installing it as I'd like to receive updates from Obsidian itself automatically.

I don't know a ton about Obsidian yet, but it's of my knowledge that adding this to the Plugins List would fix such. Is there any reason that hasn't been able to happen yet?

Newer file overwritten

I was out and listened to a presentation and took notes on my Android phone and synced. When I got back to my Mac I synced, and got a version of the note, but not the latest one, some information was missing. When I took up my phone and synced again, the fresh information disappeared from my phone and the note was replaced with an old version, the same I got in my computer.

Combined with all other problems I have experienced this makes me give up on this plugin for the time being. I'll just have to pay for Obsidian's own sync.

so good !!! thank you. and question on updates

god bless you man, sorry to open an issue for it but you're truly awesome :))

few questions; does it sync everything including the plugins? and how do we update it , are we notified of new updates , or do we have to manually check in github ?

Desktop and Mobile: same folder on GDrive

Hi Stravos,

I'm brand new to Obsidian. I installed the plugin on my desktop first but would like to write/edit as I go.

Do I have to install the plug-in on the mobile version of Obsidian? (I'm thinking, yes.)

How do I point the mobile plugin to the same folder I'm using for my desktop?

Thank you for any input!

Crash during initial upload

I got the plugin working on my Mac, but after loading a bit more than 1 000 files it crashed, I just got repeated error messages. I closed Obsidian and opened it again, the plugin seems to be running but no new uploads are happening. Is there any way to restart the uploads, other than selecting "upload all", which would mean deleting the alreadu uploaded 1 000 files.

I have more than 6 000 files to upload, so this seems a bit shaky.

Also, after this the whole app started misbehaving. Impossible to display notes. When closing down the app I got following:

Uncaught Exception:
TypeError: Cannot read properties of undefined (reading 'origin')
at Function. (/Users/kalle.kniivila/Applications/Obsidian.app/Contents/Resources/obsidian.asar/main.js:27:9882)

After starting the app the problem persists, I can read one note, but when I try to switch to another one, I just get the title of the other note, with the content of the first one. Then nothing will work at all.

Turning the plugin off didn't seem to help. After removing the plugin files Obsidian seems to work normally again. But no sync :-(

The file that caused the crash might be a sound file, as that is the last file uploaded and it is zero bytes.

same folder across pc and android

thanks for building up this app !
I'm trying to sync my android phone and desktop on the same Google Drive .. But whenever I install your plug in and initialize it , a NEW Google Drive folder is created so I end up with two separate folders : one from the computer and a different one from the phone .. how can i make one ?

and , where do i config the refresh rythm ?

thanks!
Fabio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.