Open
Description
My program for uploading files to SharePoint was working normally until last week. Now, I see an error occurring during the upload process. I tested it using this code, and it’s giving me an error.
from office365.runtime.auth.client_credential import ClientCredential
from office365.sharepoint.client_context import ClientContext
client_id = "[client_id]"
client_secret = "[client_secret]
site_url = "https://example.sharepoint.com/site/ShareDoc"
client_credentials = ClientCredential(client_id, client_secret)
ctx = ClientContext(site_url).with_credentials(client_credentials)
web = ctx.web
ctx.load(web)
ctx.execute_query()
I followed this link for my client_id and client_secret https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs
I don’t understand why this issue is happening because it was normal before.