google-gax
Advanced tools
Comparing version 2.24.1 to 2.24.2
@@ -223,7 +223,7 @@ "use strict"; | ||
// but set done = true (e.g. speech with silent file). | ||
// Don't hang forever in this case. | ||
// Some APIs just use this for the normal completion | ||
// (e.g. nodejs-contact-center-insights), so let's just return | ||
// an empty response in this case. | ||
if (rawResponse.done) { | ||
const error = new googleError_1.GoogleError('Long running operation has finished but there was no result'); | ||
error.code = status_1.Status.UNKNOWN; | ||
setImmediate(emit, 'error', error); | ||
setImmediate(emit, 'complete', {}, metadata, rawResponse); | ||
return; | ||
@@ -230,0 +230,0 @@ } |
@@ -7,2 +7,9 @@ # Changelog | ||
### [2.24.2](https://www.github.com/googleapis/gax-nodejs/compare/v2.24.1...v2.24.2) (2021-08-18) | ||
### Bug Fixes | ||
* do not throw error on empty LRO response ([#1087](https://www.github.com/googleapis/gax-nodejs/issues/1087)) ([1978197](https://www.github.com/googleapis/gax-nodejs/commit/197819799f270d886b4372ff4c9b81acd39992b1)) | ||
### [2.24.1](https://www.github.com/googleapis/gax-nodejs/compare/v2.24.0...v2.24.1) (2021-08-16) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "google-gax", | ||
"version": "2.24.1", | ||
"version": "2.24.2", | ||
"description": "Google API Extensions", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7532016