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

Python invoker throws exception when the function returns just data without attributes #67

@andrew-su

Description

@andrew-su

Bug Report

Running a function that expects cloudevents where after processing returns only the body will cause it to throw an exception.

Expected Behavior

No errors + proper attributes are returned.

Steps to Reproduce the Bug

  1. Define a function:
    from typing import Any
    
    def main(data: Any, attributes: dict):
        # Your function implementation goes here
        return data
    
  2. Run this function with the Python invoker.
  3. Send a CE via curl to function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions