Skip to content

Empty CloudEvents ID with "func invoke" #2398

@matzew

Description

@matzew

See here, using func invoke..., we do see an empty ID, when sending:

func invoke -f=cloudevent --data='{"reviewText":"I love Knative so much"}' -v

Invoking '' function at http://sentiment-analysis-app.default.10.99.189.63.sslip.io
Invoking '' function using 'cloudevent' format
Sending event
Context Attributes,
  specversion: 1.0
  type: boson.fn
  source: /boson/fn
  id: 
  datacontenttype: application/json
Data,
  {
    "reviewText": "I love Knative so much"
  }
Function invoked.  Response:
Context Attributes,
  specversion: 1.0
  type: moderated-comment
  source: sentiment-analysis
  id: 10a746c8-dd35-433c-9497-e6efcb5f946b
  time: 2024-06-25T12:07:12.923682Z
  datacontenttype: application/json
Extensions,
  badwordfilter: 
  sentimentresult: positive
Data,
  {
    "reviewText": "I love Knative so much",
    "badWordResult": "",
    "sentimentResult": "positive"
  }

reference: knative/docs#6007 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions