Using latest Node MS Graph Client
Our app uploads files to OneDrive and creates/updates Excel workbooks.
(app id : 4d42f407-c4ef-49bb-ac28-e14c32f843ff)
We create/update multiple workbooks under multiple tenants.
While testing Excel file update, we are intermittently running into extended (6+ hours) 503 Errors on SessionCreate operation only. There seems to be no documentation on this particular error.
All other operations like file upload, workbook create, sheet range insert/update work without issues.
We need sessions to ensure that our clients can view/edit excel files while they are being updated by our app, without causing "file locked for editing".
Request:
session_options = {"persistChanges": true};
wb_session = await client.api("/users/{ID}/drive/items/{EXCEL-FILE-ID}/workbook/createSession").post(session_options);
Response:
{
statusCode: 503,
code: 'CoauthSessionTerminated',
requestId: 'd2d63efc-0e40-422c-b195-55ee9398d49a',
date: 2021-03-19T23:41:54.000Z,
body: '{"code":"CoauthSessionTerminated","message":"The workbook needs to be updated. Click OK to continue.","innerError":{"code":"transientFailure","message":"The request failed due to a transient error. Please try your request again.","innerError":{"code":"CoauthSessionTerminated","message":"The workbook needs to be updated. Click OK to continue."},"date":"2021-03-19T23:41:54","request-id":"d2d63efc-0e40-422c-b195-55ee9398d49a","client-request-id":"2b75dee0-f070-b591-724d-1ab50b6f9681"}}'
}