Unhandled exception 'The operation has timed out'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JayBee
    Junior Member
    • Oct 2010
    • 114

    #1

    Unhandled exception 'The operation has timed out'

    Have any Visual Studio users seen this whilst running their code?



    And what did you do to alleviate the problem?

    Thanks.
  • Lopiner
    Junior Member
    • Feb 2009
    • 117

    #2
    I get a lot of timeouts, specially on the accounts methods like the getAccountFunds. My solution is to handle the exception on one of two ways: If a really need the results of the call (i always try to build my code to get along with empty responses from calls so i can move on in case of API errors or timeouts) i make him sleep some time and try again (not an infinite number of times, just like 5 times, the server can be down and i don't want to be stuck in a loop trying to get the info), if i don't need the response i just return "nothing" or an empty response object and try to build logic's that account for an empty response.
    fooledbyabet.com

    Comment

    Working...
    X