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

[Issue #9101][Function]Fixed get function info error #9115

Conversation

tuteng
Copy link
Member

@tuteng tuteng commented Jan 4, 2021

Fixes: #9101

Motivation

curl http://localhost:8080/admin/v3/functions/public/default/function-name

org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor aroundWriteTo
SEVERE: MessageBodyWriter not found for media type=text/plain, type=class org.apache.pulsar.common.functions.FunctionConfig, genericType=class org.apache.pulsar.common.functions.FunctionConfig.

Modifications

  • Add annotations @Produces(MediaType.APPLICATION_JSON) and @Consumes(MediaType.APPLICATION_JSON)
  • Update function name from listSources to listFunctions

Verifying this change

  • Make sure that the change passes the CI checks

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Fixed function name
@tuteng tuteng self-assigned this Jan 4, 2021
@tuteng tuteng added area/function component/rest type/bug The PR fixed a bug or issue reported a bug type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages labels Jan 4, 2021
@tuteng tuteng added this to the 2.8.0 milestone Jan 4, 2021
@sijie
Copy link
Member

sijie commented Jan 4, 2021

/pulsarbot run-failure-checks

1 similar comment
@sijie
Copy link
Member

sijie commented Jan 4, 2021

/pulsarbot run-failure-checks

@wolfstudy
Copy link
Member

/pulsarbot run-failure-checks

@tuteng tuteng merged commit afe6af2 into apache:master Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/function type/bug The PR fixed a bug or issue reported a bug type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get function info error
4 participants