"The connection was closed" error message displayed while accessing the data using API