O365 / python-o365

A simple python library to interact with Microsoft Graph and Office 365 API
Apache License 2.0
1.65k stars 419 forks source link

Upload session Error #1027

Closed thierryjmartin closed 8 months ago

thierryjmartin commented 10 months ago

Good morning,

Since yesterday I have had a problem adding attachments to emails with upload sessions.

(I use auth_flow_type='credentials').

The Graph API returns an upload url like this: https://outlook.office365.com/api/gv1.0/users('xxx')/AttachmentSessions('vvv')

which doesn't seem to work because I get this: The audience claim value is invalid for current resource. Audience claim is 'https://outlook.office.com/api/', request url is 'https://outlook.office365.com' and resource type is 'Exchange'.

It worked perfectly until yesterday. I don't understand how if it's a temporary problem from Microsoft or if I have things to specify in my request, or authorizations to add for my application.

Thanks in advance to anyone who has information on this problem.

alejcas commented 8 months ago

I don't know what's changing in the microsoft side.

Do you find out?

thierryjmartin commented 8 months ago

Yes thank you for your reply. The problem lasted a few days and disappeared on its own.