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 — pickle / celery breaks with exceptions · Issue #139 · sendgrid/python-http-client

pickle / celery breaks with exceptions  #139

New issue
Copy link
New issue
Copy link
Closed
#148
Closed
pickle / celery breaks with exceptions #139
#148
Copy link
Labels
difficulty: easyfix is easy in difficultyfix is easy in difficultystatus: help wantedrequesting help from the communityrequesting help from the communitytype: community enhancementfeature request not on Twilio's roadmapfeature request not on Twilio's roadmap

Description

@syphar
syphar
opened on Jan 30, 2020
Issue body actions

Issue Summary

We are using this library in a celery background task, using celery. (through the sendgrid library, and actually django-celery-email).

When errors happen with the sendgrid API (like a BAD REQUEST), celery can handle this exception and normally pickle it to return it to the caller.

Currently we are seeing a PicklingError where the exception type from this library can be pickled.

As seen in this issue the problem is that in the custom exception types super() is not called.

Exception/Log

line breaks added for readability

ERROR [none] celery.worker.request: 
Task handler raised error: <MaybeEncodingError: Error sending result: 
''(1, <ExceptionInfo: BadRequestsError("<HTTPError 400: \'Bad Request\'>",)>, None)''. 
Reason: ''PicklingError("Can\'t pickle 
<class \'python_http_client.exceptions.BadRequestsError\'>: it\'s not 
the same object as python_http_client.exceptions.BadRequestsError",)''.>

Technical details:

  • python-http-client version: 3.2.1
  • python version: 3.6.10
Reacted by William Mai, Mohammad Nurdin (鳴持无), Denis Cornehl, Caelean Barnes, Ordanis Sanchez, arlv, ym, Fernando Polillo, Nick Wareing, Mahatthana (Kelvin) Nomsawadi and 9 more

Activity

  1. eshanholtz
    added
    difficulty: easyfix is easy in difficultyfix is easy in difficulty
    status: help wantedrequesting help from the communityrequesting help from the community
    type: community enhancementfeature request not on Twilio's roadmapfeature request not on Twilio's roadmap
    on Feb 5, 2020
  2. childish-sambino commented on Mar 10, 2020

    @childish-sambino
    childish-sambino
    on Mar 10, 2020
    Contributor
    More actions

    This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

  3. wmai commented on Apr 5, 2020

    @wmai
    wmai
    on Apr 5, 2020
    More actions

    +1

  4. oldani commented on May 26, 2020

    @oldani
    oldani
    on May 26, 2020
    More actions

    +1

  5. caelean commented on Jun 10, 2020

    @caelean
    caelean
    on Jun 10, 2020
    More actions

    +1

  6. childish-sambino commented on Jun 16, 2020

    @childish-sambino
    childish-sambino
    on Jun 16, 2020
    Contributor
    More actions

    +1s on the issue summary

    We don't track +1s on comments.

  7. thinkingserious
    closed this as completedin #148on Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: easyfix is easy in difficultyfix is easy in difficultystatus: help wantedrequesting help from the communityrequesting help from the communitytype: community enhancementfeature request not on Twilio's roadmapfeature request not on Twilio's roadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — 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.