Coder Social home page Coder Social logo

Comments (18)

sapiest avatar sapiest commented on July 28, 2024 1

I ve tried to do it with your changes, but it doesnt help.

  1. I've built main.js
  2. I've removed previous version of plugin
  3. I am using desktop sample project, I've added new plugin and copied this project to ipad
  4. I've added new key, new upload, but after next reload I didn't see settings for plugin. I think that I still has same error

On desktop it is working (and previous version is working too)

from obsidian-gdrive-sync.

stravo1 avatar stravo1 commented on July 28, 2024 1

capacitor is used to make cross platform apps, i guess it was used to make the iOS app.

for some reason getFilesList function is trying to make a request for capacitor://localhost/app.js but it's obviously not a valid/usable URL, atleast for the plug-in (it's not even an HTTP request) so it throws that error.

this is especially weird because you can look at actions.js and look at the getFilesList function, the URL is hardcoded, it should never be capacitor://localhost/app.js

my guess is the requestUrl function which is used in getFilesList (replacement for fetch in obsidian plug-ins) tries to fetch it's content from the app.js file. the catch is that the requestUrl function is used in all other functions too, so they should also throw the same error.

conclusion? i have no clue what is going on and why this is happening :')

from obsidian-gdrive-sync.

stravo1 avatar stravo1 commented on July 28, 2024

made a few changes, can you check again?

i would suggest starting from the beginning, downloading the zip file, replacing the plugin folder in .obisidian/plugins and deleting the "obsidian" folder in your Drive (even from Bin). then log-in and start setting up.

from obsidian-gdrive-sync.

sapiest avatar sapiest commented on July 28, 2024

What is changing with settings between 0.9.5 and 0.9.9?

btw: Happy New Year 🥳

from obsidian-gdrive-sync.

stravo1 avatar stravo1 commented on July 28, 2024
screen-20240102-144359.mp4

nothing much has changed for settings from 0.9.5, but a lot else has changed. i tested it on other devices and couldn't replicate the issue.
this is how it looks on my phone. in which step does it fail for you?

happy new year :)

from obsidian-gdrive-sync.

stravo1 avatar stravo1 commented on July 28, 2024
  1. I've built main.js
  2. I've removed previous version of plugin
  3. I am using desktop sample project, I've added new plugin and copied this project to ipad
  4. I've added new key, new upload, but after next reload I didn't see settings for plugin. I think that I still has same error

if i am understanding it correctly then you are starting a project on the desktop and then copying it over to your iPad, are you logging in (and initializing the vault) on the desktop before you're copying the project? if so then the refreshToken (key) that you used in your desktop should carry over to the iPad

can you provide a video recording/screen recording of the issue?

from obsidian-gdrive-sync.

sapiest avatar sapiest commented on July 28, 2024

I removed data.json file from desktop before copy. (I dont find any ways to install plugin on ipad except copy project from desktop). I will try to record

from obsidian-gdrive-sync.

sapiest avatar sapiest commented on July 28, 2024

hm, this time I cant upload initial files at all (I dont know why), usually I see that after click "proceed" button and reload plugin.

RPReplay_Final1704188683.mov

from obsidian-gdrive-sync.

stravo1 avatar stravo1 commented on July 28, 2024

can you check whether the files have already been uploaded to Drive? is there a folder named "obsidian" in your drive? does it have anything in it?

from obsidian-gdrive-sync.

sapiest avatar sapiest commented on July 28, 2024

The "obsidian" folder exists from previous loads. And it has folders, from previous attempts. But in this case - no new folder

from obsidian-gdrive-sync.

stravo1 avatar stravo1 commented on July 28, 2024

by any chance are there two folders with the same name in your Drive's obsidian folder? I have tried my best to replicate the issue but couldn't. I would suggest you to use the latest release zip and try once more :(

the plugin is properly working on the desktop correct?

i will try and add error logging (in a .md file) so that people can view the logs even on mobile devices

from obsidian-gdrive-sync.

sapiest avatar sapiest commented on July 28, 2024

Hm, about 2 folders, maybe, but it is not main cause. I had the same behaviour before recording and with different vault names.

yep, the plugin is working properly on the desktop

yes, logging in file will be great, thanks

from obsidian-gdrive-sync.

stravo1 avatar stravo1 commented on July 28, 2024

added error logging on the latest release:
https://github.com/stravo1/obsidian-gdrive-sync/releases/tag/v0.9.9-beta-5

enable in settings

from obsidian-gdrive-sync.

stravo1 avatar stravo1 commented on July 28, 2024

added normal verbose logging also, this helps even if there's no error:
https://github.com/stravo1/obsidian-gdrive-sync/releases/tag/v0.9.9-beta-6

enable them in settings, and please provide both the error-log and verbose-log files

from obsidian-gdrive-sync.

sapiest avatar sapiest commented on July 28, 2024

Hi, in the beta-6 version I can see the settings page. But I had some errors in logs. Clip the logs below
verbose-log-gdrive-plugin.md

error-log-gdrive-plugin.md

from obsidian-gdrive-sync.

stravo1 avatar stravo1 commented on July 28, 2024

so now everything is fine? weird man :')

looked at the logs, doesn't seem like anything i can fix, might be an issue with obsidian itself or some conflicts with other plug-ins, honestly i have no idea

but if the plug-in is functional then i will close this issue

glad to help :)

from obsidian-gdrive-sync.

sapiest avatar sapiest commented on July 28, 2024

Last question) What is this error "ERROR: Unable to complete action: - getFilesList => Error - Bad URL. - M@capacitor://localhost/app.js:1:239326"

from obsidian-gdrive-sync.

stravo1 avatar stravo1 commented on July 28, 2024

fixed at https://github.com/stravo1/obsidian-gdrive-sync/releases/tag/v0.9.9-beta-9

from obsidian-gdrive-sync.

Related Issues (20)

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.