Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty CloudEvents ID with "func invoke" #2398

Open
matzew opened this issue Jun 26, 2024 · 2 comments
Open

Empty CloudEvents ID with "func invoke" #2398

matzew opened this issue Jun 26, 2024 · 2 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@matzew
Copy link
Member

matzew commented Jun 26, 2024

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)

@ayushrakesh
Copy link

ayushrakesh commented Jun 27, 2024

@matzew I am interested to work on this, but need help, can you explain more? How can it be reproduce? I have my running k8s cluster and in there serving and eventing both running. For functions what I need to do.

Copy link
Contributor

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

2 participants