Timeout error 504 - Graph API

Frequent Visitor

I'm using MS Graph API to retrieve/create/edit data from sharepoint list. Sometime it returns 504 - Timeout error and it's unpredictable. Here is an example request i use (Javascript is the language i use):

axios.post(
`https://graph.microsoft.com/v1.0/sites/${siteId}/lists/${listId}/items`,
{
fields: {
Title: 'Hello' }
},
headers: {
Authorization: Bearer token,
'content-type': 'application/json'
}
}

 Did i miss somehting when sending request? Or how i can avoid this error as much as possible?

0 Replies