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

Update functions.dart #472

Closed
wants to merge 1 commit into from
Closed

Conversation

rosera
Copy link

@rosera rosera commented Jul 2, 2024

Issue:

Backend service unable to build due to invalid signature. Error indicates the RequestContext is not supported based on the updated api specification.

@CloudFunction()
GreetingResponse function(GreetingRequest request, RequestContext context) {
  final name = request.name ?? 'World';
  final response =
      GreetingResponse(salutation: _randomSalutation(), name: name);
  context.logger.info('greetingResponse: ${response.toJson()}');
  return response;
}

Resolution:

Resolve invalid function signature entry for backend Dart Function Frameworks example. Specifically the reference to

  • RequestContext context
  • context.logger.info
@CloudFunction()
GreetingResponse function(GreetingRequest request) {
  final name = request.name ?? 'World';
  final response =
      GreetingResponse(salutation: _randomSalutation(), name: name);
  return response;
}

Resolve invalid function signature for backend Dart Function Frameworks example.
@kevmoo
Copy link
Collaborator

kevmoo commented Jul 2, 2024

Closing out in favor of #464 – investigating now!

@kevmoo kevmoo closed this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants