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

No settings after first uploading a vault #1

Closed
sapiest opened this issue Jan 2, 2024 · 18 comments
Closed

No settings after first uploading a vault #1

sapiest opened this issue Jan 2, 2024 · 18 comments

Comments

@sapiest
Copy link

sapiest commented Jan 2, 2024

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?

@stravo1
Copy link
Owner

stravo1 commented Jan 2, 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.

@sapiest
Copy link
Author

sapiest commented Jan 2, 2024

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)

@sapiest
Copy link
Author

sapiest commented Jan 2, 2024

What is changing with settings between 0.9.5 and 0.9.9?

btw: Happy New Year 🥳

@stravo1
Copy link
Owner

stravo1 commented Jan 2, 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 :)

@stravo1
Copy link
Owner

stravo1 commented Jan 2, 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?

@sapiest
Copy link
Author

sapiest commented Jan 2, 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

@sapiest
Copy link
Author

sapiest commented Jan 2, 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

@stravo1
Copy link
Owner

stravo1 commented Jan 2, 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?

@sapiest
Copy link
Author

sapiest commented Jan 2, 2024

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

@stravo1
Copy link
Owner

stravo1 commented Jan 2, 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

@sapiest
Copy link
Author

sapiest commented Jan 2, 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

@stravo1
Copy link
Owner

stravo1 commented Jan 2, 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

@stravo1
Copy link
Owner

stravo1 commented Jan 2, 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

@sapiest
Copy link
Author

sapiest commented Jan 5, 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

@stravo1
Copy link
Owner

stravo1 commented Jan 5, 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 :)

@sapiest
Copy link
Author

sapiest commented Jan 5, 2024

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

@stravo1
Copy link
Owner

stravo1 commented Jan 5, 2024

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 :')

@stravo1
Copy link
Owner

stravo1 commented May 20, 2024

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

2 participants