Solution
This error is caused by running out of time before the database returns a response. Sometimes it takes a while to receive a response because of the large size of a database.
Two ways to resolve this error are as follows:
- Change the timeout for the process so it is longer or get rid of the timeout
- Change the amount of data you are querying the SQL database for to only request a small subset instead of the whole table.