Forum Discussion

kkhanhluu's avatar
kkhanhluu
Copper Contributor
Mar 10, 2020

Timeout error 504 - Graph API

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?

No RepliesBe the first to reply

Resources