Javascript callout giving eof unexpected error

Not applicable

I am trying to get the collections book that I have created in Baas. I am getting error 'eof enexpected' Below is my code and details from BaaS

Code:-

var targetRequestUrl ="http://ambarishtraining-test.apigee.net/books";

var req = new Request(targetRequestUrl, 'GET', request.headers);

var res = httpClient.send(req); res.waitForComplete();

Collection:-

/Books { "action": "get", "application": "c154b8f0-ad42-11e5-b769-75c2af15bd00", "params": { "access_token": [ "YWMtQqWgfs-mEeWgm5-6Nz51kQAAAVLtRQS5z5_-rKo1Wv5AUyy9jwvmmA8Yqr8" ] }, "path": "/books", "uri": "https://api.usergrid.com/ambarishtraining/jokecomments/books", "entities": [ { "uuid": "dcf7a61a-aeb1-11e5-b90a-11ea41ddd9ea", "type": "book", "name": "harry potter and sorcerer's stone", "created": 1451451464433, "modified": 1451451464433, "description": "first harry potter movie", "id": "0001", "metadata": { "path": "/books/dcf7a61a-aeb1-11e5-b90a-11ea41ddd9ea" } }, { "uuid": "b0d06fda-aeb2-11e5-b17c-458aeb6cce38", "type": "book", "name": "harry potter and chambers of secret", "created": 1451451819853, "modified": 1451451819853, "description": "second harry potter movie with big snake", "id": "0002", "metadata": { "path": "/books/b0d06fda-aeb2-11e5-b17c-458aeb6cce38" } }, { "uuid": "7e893e8a-aeb7-11e5-9bb2-d969e1a4a404", "type": "book", "name": "harry potter and prisioner od azkaban", "created": 1451453882984, "modified": 1451453882984, "description": "third harry potter movie with warewolf", "id": "0003", "metadata": { "path": "/books/7e893e8a-aeb7-11e5-9bb2-d969e1a4a404" } }

Note:- res.isError() gives True

Solved Solved
0 5 508
1 ACCEPTED SOLUTION

adas
New Member

This issue was resolved after a hotfix was pushed to the Apigee Edge cloud. I am going to close this thread.

View solution in original post

5 REPLIES 5

@Ambarish Kumar Singh ,

It's a known issue due to recent release updates, we are working on same. Please find progress and status update here.

Not applicable

Status page indicating the issue is resolved but I am still facing it in my free org [ eof unexpected ].

Not applicable

Status page indicating the issue is resolved but I am still facing it in my free org [ eof unexpected ].

Not applicable

Status page indicating the issue is resolved but I am still facing it in my free org [ eof unexpected ].

adas
New Member

This issue was resolved after a hotfix was pushed to the Apigee Edge cloud. I am going to close this thread.