Open MalarvizhiK opened 3 years ago
The below code gives unexpected end of JSON input. The URL will retrieve 2000 documents from Cloudant database.
req := request.New().Get(client.Path + path) req.SetBasicAuth(client.Username, client.Password) req.Header.Add("Accept-Encoding", "application/json") req.Debug = true
body := &cloudantLib.Resp{} resp, _, errs := req.EndStruct(body) Is there any limit in the response body ? When we try with small document size like 100, we don't get any error and it works fine.
The below code gives unexpected end of JSON input. The URL will retrieve 2000 documents from Cloudant database.
req := request.New().Get(client.Path + path) req.SetBasicAuth(client.Username, client.Password) req.Header.Add("Accept-Encoding", "application/json") req.Debug = true