Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

kwargs.request is being set when there is no request #321

@robinjoseph08

Description

@robinjoseph08

When using v2.0.1 on a non-web application (i.e. a worker process), the client is setting kwargs.request with garbage information which then clutters up the issue page when viewing the exception:

  request:
   { method: undefined,
     query_string: {},
     headers: {},
     cookies: {},
     data: '<unavailable>',
     url: 'http://<no host>undefined' },

image

Ideally, this isn't populated at all since there's no relevant "request" within the context of this worker.

From preliminary digging, it looks like it's because parsers.parseRequest adds this info even if it doesn't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions