Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected end of JSON input in req.EndStruct(body) #261

Open
Tracked by #5
MalarvizhiK opened this issue May 11, 2021 · 0 comments
Open
Tracked by #5

unexpected end of JSON input in req.EndStruct(body) #261

MalarvizhiK opened this issue May 11, 2021 · 0 comments

Comments

@MalarvizhiK
Copy link

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. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant