Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Do not throw error on empty LRO response #257

Closed
@TrucHLe

Description

@TrucHLe

operation.py throws an error if an LRO finishes but returns an empty response (the error message that it throws is "Unexpected state: Long-running operation had neither response nor error set"). However some APIs, such as Contact Center Insights, end LRO without setting either result or error (but set done: true). For example, please see ExportInsightsDataResponse which is an empty response that is returned after the ExportInsightsData LRO is complete.

We should update operation.py to return an empty response instead of an error when it encounters an empty LRO. For reference, we found a similar issue in the NodeJS operation library and it was fixed here.

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions