GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Do not throw error on empty LRO response · Issue #257 · googleapis/python-api-core

This repository was archived by the owner on Feb 23, 2026. It is now read-only.
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Do not throw error on empty LRO response #257

Copy link
Copy link
Closed
#258
Closed
Do not throw error on empty LRO response#257
#258
Copy link
Assignees
busunkim96
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.

Description

@TrucHLe
TrucHLe
opened on Aug 18, 2021
Issue body actions

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.

Activity

  1. busunkim96
    added
    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.
    on Aug 18, 2021
  2. busunkim96
    self-assigned this
    on Aug 18, 2021
  3. busunkim96 commented on Aug 20, 2021

    @busunkim96
    busunkim96
    on Aug 20, 2021
    Contributor
    More actions

    Hi @TrucHLe,

    I've opened a PR I believe will resolve the issue in #258. If you want to try it locally you can install it straight from the branch:

    pip install git+https://github.com/googleapis/python-api-core.git@fix-empty-LROs

    Thank you for providing a link to the NodeJS PR (and linking your sample PR)! Both were super helpful for understanding the issue. 😄

  4. tseaver
    closed this as completedin #258on Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @busunkim96
    busunkim96

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.