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 — StackDriver Error reporting payload key is wrong · Issue #3315 · googleapis/google-cloud-python

StackDriver Error reporting payload key is wrong #3315

New issue
Copy link
New issue
Copy link
Closed
Closed
StackDriver Error reporting payload key is wrong#3315
Copy link
Assignees
dhermes
Labels
api: clouderrorreportingIssues related to the Error Reporting API.

Description

@bmorgan21
bmorgan21
opened on Apr 19, 2017
Issue body actions

https://github.com/GoogleCloudPlatform/google-cloud-python/blob/0.24.0/error_reporting/google/cloud/error_reporting/client.py#L227

I believe this like should set the payload context key to httpRequest and NOT httpContext. This would make it match the spec.

https://cloud.google.com/error-reporting/docs/formatting-error-messages

Right now the report_exception call is throwing an error when using grpc and not populating the data with the http api usage.

google.protobuf.json_format.ParseError: Message type "google.devtools.clouderrorreporting.v1beta1.ErrorContext" has no field named "httpContext".

Activity

  1. bmorgan21 commented on Apr 19, 2017

    @bmorgan21
    bmorgan21
    on Apr 19, 2017
    Author
    More actions

    here is a code snippet that at least gets the data to show up.

    
    class MyClient(error_reporting.Client):
    
            def _build_error_report(self, *args, **kwargs):
                payload = super(MyClient, self)._build_error_report(*args, **kwargs)
    
                if 'context' in payload:
                    data = payload['context'].pop('httpContext', None)
                    if data:
                        payload['context']['httpRequest'] = data
    
                return payload
    
    
  2. dhermes
    added
    api: clouderrorreportingIssues related to the Error Reporting API.
    on Apr 19, 2017
  3. dhermes commented on Apr 19, 2017

    @dhermes
    dhermes
    on Apr 19, 2017
    Contributor
    More actions

    Thanks for reporting @bmorgan21, this was fixed in #3299. It seems we should get a release out soon?

  4. dhermes
    closed this as completedon Apr 19, 2017
  5. bmorgan21 commented on Apr 19, 2017

    @bmorgan21
    bmorgan21
    on Apr 19, 2017
    Author
    More actions

    thanks.

    is there a dev build I can use? vs having to patch the broken code?

  6. lukesneeringer commented on Apr 19, 2017

    @lukesneeringer
    lukesneeringer
    on Apr 19, 2017
    Contributor
    More actions

    @dhermes Go ahead and cut a release. Thanks!

  7. dhermes commented on Apr 19, 2017

    @dhermes
    dhermes
    on Apr 19, 2017
    Contributor
    More actions

    @bmorgan21 Kicked off a build

    https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/1652

    that will push the new release to

    https://pypi.python.org/pypi/google-cloud-error-reporting/0.24.1

  8. bmorgan21 commented on Apr 19, 2017

    @bmorgan21
    bmorgan21
    on Apr 19, 2017
    Author
    More actions

    @dhermes thank you for the quick turnaround.

  9. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: clouderrorreportingIssues related to the Error Reporting API.

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.