Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

All API calls failing after the 3rd consecutive call...

I'm trying to use the REST API to automatically refresh all of my datasets after their data sources are updated every morning. I've written a .NET program that will get the list of Datasets, check wh...
  • Anonymous's avatar
    Anonymous
    9 years ago

    For the record, I found a temporary solution for this until they fix this bug: Closing the ConnectionGroup after each WebRequest is completed.

     

    Assuming "wr" is your HttpWebRequest var, just use this line after you call wr.GetResponse.

     

    wr.ServicePoint.CloseConnectionGroup(wr.ConnectionGroupName)

     

    No more timeouts after the 2nd API POST call.