We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following functions in http-client.js are likely to throw an exception when an error occured in underlying call of httpClient.request:
http-client.js
httpClient.request
HttpClient.prototype.buckets
HttpClient.prototype.getBucket
Because when an error is detected in httpClient.request the callback is called as following:
callback(err);
and in those two functions, callbacks are implemented as:
meta.callback = function(err, data, _meta) { callback(err, data.buckets, _meta) }
Something like the following could be added in callback:
data = data ? data.buckets : undefined; callback(err, data, _meta);
Exact error is: TypeError: Cannot read property 'buckets' of undefined
TypeError: Cannot read property 'buckets' of undefined
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Following functions in
http-client.js
are likely to throw an exception when an error occured in underlying call ofhttpClient.request
:HttpClient.prototype.buckets
HttpClient.prototype.getBucket
Because when an error is detected in
httpClient.request
the callback is called as following:and in those two functions, callbacks are implemented as:
Something like the following could be added in callback:
Exact error is:
TypeError: Cannot read property 'buckets' of undefined
The text was updated successfully, but these errors were encountered: