AutoTrader Web throws this error when it cannot acquire a trading lock for the given account. See the explanation given below which should help you understand.
Every time AutoTrader Web tries to perform any operation (like place/modify/cancel order or read positions/margins/order etc.); it first tries to get a trading lock on that account. This is done on purpose to make sure that only one operation is executed for any given trading account at any given moment. It not only helps keep the account’s integrity intact but also helps avoid “Too many requests” error from your stock broker. Once an operation is over, the lock is released so that the next operation can acquire it.
Now the problem happens when your stock broker’s server does not respond with a given timeframe (which is set to 60 seconds). Any operation which cannot get the lock, will wait a maximum of 60 seconds. Once the wait expires and lock is not obtained; you will get this error.
Most common occurrence of this error is seen in:
- Finvasia Scalpert
- Cause: NoHttpResponseException: staging.finvasia.com:3000 failed to respond
- Upstox
- Cause: When AutoTrader fails to receive response from Upstox Server
Solution
Just retry the failed operation.
The root cause here is your broker’s server, which failed to complete operation within 90 seconds. So ideally a fix needs to be done on the broker’s side. It is hard to convince them.