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

[Bug] Unable to sync with OneDrive (403 access denied) #1853

Open
gaiking-uk opened this issue Dec 13, 2024 · 13 comments
Open

[Bug] Unable to sync with OneDrive (403 access denied) #1853

gaiking-uk opened this issue Dec 13, 2024 · 13 comments
Labels

Comments

@gaiking-uk
Copy link

Bug Report

Bug Description

I am getting a 403 access denied error when trying to sync with OneDrive (was working fine until recently).

Screenshots

image

Additional Context

I have tried the following:

  • Disconnecting and reconnecting my account
  • Deleting the Stylus Extension folder in my OneDrive
  • Revoking and re-granting the apps permissions
  • Syncing with Google Drive (worked)

System Information

  • OS: Windows 11
  • Browser: Edge 131
  • Stylus Version: 2.0.5
@hiiiha
Copy link

hiiiha commented Dec 15, 2024

Same here,
OS: Arch Linux & Windows 10
Firefox 128 ESR
The same "inner error"

Seems to be a OneDrive error because I am encountering this error in extension Violentmonkey too.

@boromyr
Copy link

boromyr commented Dec 15, 2024

same problem

@SapitoSucio
Copy link

same problem

@IanGoo
Copy link

IanGoo commented Dec 23, 2024

Cannot synchronize either. Not only OneDrive but my own WebDAV, also report 403 error.
I’m using Firefox, extension version 1.5.51。

@tophf
Copy link
Member

tophf commented Dec 24, 2024

@eight04, OneDrive may have removed the app registration, could you check it?

@eight04
Copy link
Collaborator

eight04 commented Dec 24, 2024

I can't reproduce after re-activating my account in #1842:
圖片

@eight04
Copy link
Collaborator

eight04 commented Dec 24, 2024

my own WebDAV

@IanGoo Would you like to elaborate this in a new issue?

@xiaofeiTM233
Copy link

xiaofeiTM233 commented Dec 24, 2024

I asked Microsoft OneDrive Support, but they seem to be passing the buck
image
I guess it's them changing the way they use apis without telling developers
image

@tophf tophf added the sync label Dec 27, 2024
@gaiking-uk
Copy link
Author

gaiking-uk commented Jan 1, 2025

Thanks for following up with Microsoft @xiaofeiTM233

While I agree it does sound like they are passing the issue over a bit "Can't sync with OneDrive you say?.. Well OneDrive works fine so the problem must be with the 3rd party" -- I am forced to agree that if this was caused by 'Microsoft changing something at their end that broke all 3rd party integration' the internet would've completely lost its mind by now!! so thinking this must be something specific to Stylus (or 1-2 other apps, like Tampermonkey).


@tophf: OneDrive may have removed the app registration, could you check it?

I was thinking along the same kind of line myself -- Was anyone able to check the app registration with Microsoft (and/or its auth token, secret, etc)?

(I know @eight04 replied, but I can't read Chinese am afraid and wasn't sure exactly what they meant about "activating their account" - i.e. if this was referring to their personal account, or the Stylus extension/app account, etc).


TLDR; Be great to get an update on this when possible please

Seems like it is probably something to do with the extensions/apps registration with Microsoft (or possibly Microsoft changed some API and a code change is needed to sync, etc) but am guessing and appreciate you guys know a lot more about how this works than I do. Hopefully this can get fixed soon.

@markran
Copy link

markran commented Jan 10, 2025

Happening to me too.

@artquest
Copy link

I've also got this error today. Tried to revoke access for Stylus app in MS account (deleting Stylus folder in OneDrive) and grant access again but to no avail.

The day before I had an email from MS telling me that "many files were recently deleted from your OneDrive".
And I don't use my OneDrive except for syncing a couple of apps (and Stylus is the only one that does this regularly).
Maybe this can help to investigate the problem.

@xiaofeiTM233
Copy link

I found that the correct url should be

https://api.onedrive.com/v1.0/drive/special/approot:/:/children

——Source:Tampermonkey/tampermonkey#2284 (comment)

I try to rewrite it to https://api.onedrive.com/v1.0/drive/special/approot:/:/children after I can show my tampermonkey backup normally

Image

But before that, I tried syncing onedrive backup with stylus, sync normally

Image

And I found the api of onedrive in stylus is
https://graph.microsoft.com/v1.0/me/drive/special/approot:/meta.json:/content

I don't know much about this issue and I don't know if some of the recent commits have fixed it, but I think the Unable to sync with OneDrive has been fixed

@eight04
Copy link
Collaborator

eight04 commented Jan 28, 2025

——Source:Tampermonkey/tampermonkey#2284 (comment)

The issue you referenced is HTTP 400 but this issue is 403. They are different issues.

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

No branches or pull requests

10 participants