Closed rosera closed 1 week ago
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; }
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; }
Closing out in favor of https://github.com/GoogleCloudPlatform/functions-framework-dart/issues/464 – investigating now!
Issue:
Backend service unable to build due to invalid signature. Error indicates the RequestContext is not supported based on the updated api specification.
Resolution:
Resolve invalid function signature entry for backend Dart Function Frameworks example. Specifically the reference to
RequestContext context
context.logger.info