Skip to content

Reusing a marshaller causes failures? #12

@evankanderson

Description

@evankanderson

I got an error with the pattern:

m = marshaller.NewDefaultHTTPMarshaller()

@app.route("/")
def handle():
    event = m.FromRequest(....)
    print(event)

Invoking this a second time, I got the following exception:

  File "env/lib/python3.5/site-packages/cloudevents/sdk/marshaller.py", line 71, in FromRequest
    content_type, self.__converters))
cloudevents.sdk.exceptions.UnsupportedEventConverter: Unable to identify valid event converter for content-type: 'No registered marshaller for application/json; charset=utf-8 in <generator object HTTPMarshaller.__init__.<locals>.<genexpr> at 0x7fbb573c6db0>'

I can look into this later this week.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions