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

sync from onedriver ,Invalid API or resource #4181

Closed
xiaowj opened this issue Dec 4, 2020 · 22 comments
Closed

sync from onedriver ,Invalid API or resource #4181

xiaowj opened this issue Dec 4, 2020 · 22 comments
Labels
bug It's a bug stale An issue that hasn't been active for a while...

Comments

@xiaowj
Copy link

xiaowj commented Dec 4, 2020

when sync from onedriver, joplin throw exception Error: Invalid API or resource

Environment

Joplin version: Joplin 1.4.19 (prod, linux)
Platform: Ubnutu
OS specifics: 18.04

Steps to reproduce

  1. ckick sync

Logfile

/tmp/.mount_JoplinHKiQZy/resources/app.asar/node_modules/@joplin/lib/Logger.js:165 11:47:13: Error: Invalid API or resource
    at OneDriveApi.oneDriveErrorResponseToError (/tmp/.mount_JoplinHKiQZy/resources/app.asar/node_modules/@joplin/lib/onedrive-api.js:130)
    at OneDriveApi.exec (/tmp/.mount_JoplinHKiQZy/resources/app.asar/node_modules/@joplin/lib/onedrive-api.js:276)
    at async OneDriveApi.execJson (/tmp/.mount_JoplinHKiQZy/resources/app.asar/node_modules/@joplin/lib/onedrive-api.js:346)
    at async FileApiDriverOneDrive.delta (/tmp/.mount_JoplinHKiQZy/resources/app.asar/node_modules/@joplin/lib/file-api-driver-onedrive.js:243)
    at async tryAndRepeat (/tmp/.mount_JoplinHKiQZy/resources/app.asar/node_modules/@joplin/lib/file-api.js:38)

@xiaowj xiaowj added the bug It's a bug label Dec 4, 2020
@aaronxn
Copy link
Contributor

aaronxn commented Dec 7, 2020

I'm experiencing the same error.

Screenshot from 2020-12-07 08-33-44

Joplin 1.4.19 (prod, linux)

Client ID: 9d3b4f5a84bf4fd5bc858d808a5e2a3c
Sync Version: 2
Profile Version: 34
Keychain Supported: No

Revision: de123ee (master)

@whikwon
Copy link

whikwon commented Dec 8, 2020

I'm also experiencing the same error.

@tonylaw7
Copy link

tonylaw7 commented Dec 8, 2020

Also experiencing this issue with both Windows and MacOS joplin apps. Joplin iOS app seems to be stuck in a loop fetching items without stopping.

edit: Using latest version on all platforms and OneDrive sync

@Jon-Schneider
Copy link

New user as of today. I've been receiving this on my iPhone and multiple Macs all day.

@fastjien
Copy link

fastjien commented Dec 8, 2020

me too

@cyberpunkrooster
Copy link

Same issue appearing on Ubuntu and iOS (latest versions)
Other observations:

  • Creating a new note on Ubuntu and clicking Synchronise appears to successfully upload the note, but will still display the error.
  • Wiping the iOS app, reinstalling and kicking off a sync successfully pulls all notes but will display the error again once everything is pulled.

@gagin
Copy link

gagin commented Dec 8, 2020

Same here - Windows and Android both showing the same error after sync via OneDrive. And it doesn't sync.

@Hasenpfote
Copy link

I'm having the same problem when I'm syncing between Linux Mint and Android via OneDrive.
When this problem occurs, the OneDrive side is up to date, but the local side seems to not be reflected. (i.e. synchronization does not work.)

@kenkenspin
Copy link

kenkenspin commented Dec 8, 2020

Same here. Linux and iOS both showing the same error in sync via OneDrive too.
i remove .config/joplin-desktop/database.sql, once success sync, but in next step, synchronization does no work as showing Invalid API error.

@philc622
Copy link

philc622 commented Dec 8, 2020

Seeing same error on Windows, Joplin versions 1.4.18 and 1.2.6. Have re-installed and cleared out OneDrive Apps/Joplin, but the error recurs.
Also seeing it on latest iOS App too.

@koonmeng
Copy link

koonmeng commented Dec 8, 2020

Same issue here, all my Windows and Android devices are continuously syncing with OneDrive. Seems to be syncing all my notes, but it will never complete the full sync and I had to cancel it.

@coffee-times
Copy link

coffee-times commented Dec 8, 2020

My Mac seems to kinda sync it says completed and then shows the error. My android phone just keeps counting and never stops and does not show me newly created items

@jonath92
Copy link
Contributor

jonath92 commented Dec 8, 2020

Seems an upstream issue: OneDrive/onedrive-api-docs#1408

@danfoxley
Copy link

danfoxley commented Dec 8, 2020

New user as of today. I've been receiving this on my iPhone and multiple Macs all day.

Same here, new user. Don't use DropBox, so OneDrive is preferred.

@bazilevichvl
Copy link

bazilevichvl commented Dec 8, 2020

Infinite fetch. Nothing useful on the console. Upd: it works.

@whikwon
Copy link

whikwon commented Dec 9, 2020

Now it works correctly.

@cyberpunkrooster
Copy link

Still getting the error here across iOS and Ubuntu devices.

@xiaowj
Copy link
Author

xiaowj commented Dec 9, 2020

Now it works correctly.

@xiaowj xiaowj closed this as completed Dec 9, 2020
@tonylaw7
Copy link

tonylaw7 commented Dec 9, 2020

It's only working on iOS for me. Both MacOS and Windows clients are still showing the same error, can someone else confirm?

edit: It worked after I re-installed Joplin and re-authenticated/sycned with OneDrive.

@kenkenspin
Copy link

kenkenspin commented Dec 9, 2020

fix it as link OneDrive/onedrive-api-docs#1408.
I need reset config file, OK on both Linux and iOS. it remove(rename) .config/joplin-desktop/database.sql on Linux, remove iOS app, then reconfig for OneDrive in Joplin.

@laurent22 laurent22 reopened this Dec 10, 2020
@laurent22
Copy link
Owner

Re-opening as it's not fixed for everybody.

@stale
Copy link

stale bot commented Jan 14, 2021

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

@stale stale bot added the stale An issue that hasn't been active for a while... label Jan 14, 2021
@xiaowj xiaowj closed this as completed Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug stale An issue that hasn't been active for a while...
Projects
None yet
Development

No branches or pull requests