Thanks for posting your issue here and providing some context. It's difficult to know exactly what the error is, especially if it's transient.
From what I understand, the client is making requests to your Cloud Endpoints using the API Client Library for Javascript. If this is the case, the generic way of issuing such requests is using the
gapi.client.request(args) method. This returns a promise with which to use the then() or execute() methods.
Unfortunately,
the documentation for both those methods does not state explicitly under what conditions it would return the values you received. From this, it's fair to suspect those values are actually returned from the server and not an issue with the Javascript API. This could be confirmed by inspecting the network requests using
Chrome Developer Tools and looking at the raw response.
That being said, if it's confirmed to be a response from the server and is reproducible, please feel free provide the Endpoints code that causes this so we can attempt to reproduce and identify the root cause. Also, please test this endpoint using the API Explorer. If it's very rare, I would suggest adding some retry system to your front end to account for network issues like this. An example follows:
var request_args = {
'params': {
'q': 'search_values'
},
'path': 'path/to/resource'
};
function success(response) {}
function failure(reason) {
console.error(reason);
}
var promise = gapi.client.request(request_args).then(success, function (reason) {
failure(reason);
console.debug('retrying');
setTimeout(function () {
gapi.client.request(request_args).then(success, failure);
}, 500);
});
Hope this helps. Let us know if you continue to experience this network error and can confirm it's a platform issue or if you have any other questions on the subject.