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 — cannot parse error response for REST · Issue #730 · googleapis/gapic-generator-python

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

cannot parse error response for REST #730

Copy link
Copy link
Closed
#738
Closed
cannot parse error response for REST#730
#738
Copy link
Assignees
arithmetic1728
Labels
🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@arithmetic1728
arithmetic1728
opened on Jan 11, 2021
Issue body actions

If response code is not 200, then response.content will be an error message. The following code cannot parse this error message, and an exception will be thrown.

gapic-generator-python/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2

Line 202 in 56c31de

return {{ method.output.ident }}.from_json(response.content)

Example response.content:
{\n"error": {\n "code": 403,\n "message": "Request is prohibited by organization\'s policy. vpcServiceControlsUniqueIdentifier: a69c658379e4178a",\n "errors": [\n {\n "message": "Request is prohibited by organization\'s policy. vpcServiceControlsUniqueIdentifier: a69c658379e4178a",\n "domain": "global",\n "reason": "forbidden"\n }\n ],\n "status": "PERMISSION_DENIED"\n }\n}

Activity

  1. arithmetic1728
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Jan 11, 2021
  2. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Jan 12, 2021
  3. arithmetic1728
    closed this as completedin #738on Jan 20, 2021
  4. JustinBeckwith
    assigned
    arithmetic1728
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @arithmetic1728
    arithmetic1728

Labels

🚨This issue needs some love.triage meI really want to be triaged.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.