Skip to content
This repository has been 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

Open
andrew-su opened this issue May 16, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@andrew-su
Copy link
Contributor

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.
@bbtong bbtong added the bug Something isn't working label Jul 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants