question

BartDekker-7043 avatar image
9 Votes"
BartDekker-7043 asked saldana-msft edited

Graph API generated (temporary) Sharepoint download URL returns `BadRequest` for all calls

Scenario: We want to download files from our company sharepoint using an API, which uses the client credentials flow. No users involved. We do this to fetch help files and content for our apps.

Issue: Since this weekend, whenever we want to download files from Sharepoint, a non specific BadRequest exception occurs.
Text: {"error":{"code":"invalidRequest","innerError":{"code":"badArgument"},"message":"One of the provided arguments is not acceptable."}}

It does not specify which arguments aren't acceptable.

The production code generates the request via the Graph API framework, using


111810-image.png




Temporary download also contains the same error,


111882-image.png




This doesn't work at all.
We can't find a work around.

ApiVersion=2.0

office-sharepoint-onlinesharepoint-devoffice-onedrive-client-itpromicrosoft-graph-files
image.png (15.5 KiB)
image.png (29.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BartDekker-7043 avatar image
1 Vote"
BartDekker-7043 answered

I can confirm it's been solved, thank you for the feedback.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Martin-0841 avatar image
3 Votes"
Martin-0841 answered Martin-0841 edited
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

andriejus avatar image
3 Votes"
andriejus answered

Also having exactly the same issue.
Cannot figure out what's happening as the error messages aren't helpful. This functionality used to work just fine days ago.
Can't find any relevant changes in any of the rest api or libary change logs.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MichaelHan-MSFT avatar image
1 Vote"
MichaelHan-MSFT answered MichaelHan-MSFT commented

Hi @BartDekker-7043,

I have tested on my tenant. This works for me.

Could you please share the timestamp and request id of the error for this endpoint? I would help check the log.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@BartDekker-7043,
This issue should be resolved now, could please check on your end?

0 Votes 0 ·