API Response time

How long should we wait for a response from the API.

When we update a row, it takes 10 to 15 seconds. But sometime we never get a response even after 10 minutes. I would like to set a maximum time and then retry the row update.

Best Answer

  • Genevieve P.
    Genevieve P. Employee Admin
    Answer ✓

    Hi @donlambert

    You should be receiving a timeout from your code after 120 seconds if it doesn't complete the action. I would suggest that 5 minutes would be a good number of minutes to wait before retrying the update, however the lack of response could indicate that your sheet is too complex. You may want to try simplifying the sheet (see: Issue: Smartsheet Is Slow to Load or Save).

    It also could depend on whether you are using an SDK or making HTTP calls directly. For instance, the C# SDK can take longer to deserialize the results of certain API calls, so you may be waiting on the SDK rather than the API itself. 5 minutes should still be enough with an SDK (depending on the complexity of your sheet and quantity of rows being updated), but if you want to add extra room then 10 minutes would be more than enough time to wait.

    If you're still having issues with certain requests, you may want to reach out to Smartsheet Support with a screen capture of the request you're making and the sheet URL.

    Cheers,

    Genevieve

Answers

  • Genevieve P.
    Genevieve P. Employee Admin
    Answer ✓

    Hi @donlambert

    You should be receiving a timeout from your code after 120 seconds if it doesn't complete the action. I would suggest that 5 minutes would be a good number of minutes to wait before retrying the update, however the lack of response could indicate that your sheet is too complex. You may want to try simplifying the sheet (see: Issue: Smartsheet Is Slow to Load or Save).

    It also could depend on whether you are using an SDK or making HTTP calls directly. For instance, the C# SDK can take longer to deserialize the results of certain API calls, so you may be waiting on the SDK rather than the API itself. 5 minutes should still be enough with an SDK (depending on the complexity of your sheet and quantity of rows being updated), but if you want to add extra room then 10 minutes would be more than enough time to wait.

    If you're still having issues with certain requests, you may want to reach out to Smartsheet Support with a screen capture of the request you're making and the sheet URL.

    Cheers,

    Genevieve