Skip to content

Support for Protobufs in CloudEvents  #391

Closed
@diezep

Description

@diezep

I get this error when i trigger a cloud event in Cloud Run using application/protobuf as a event data content type

Bad request. Unsupported encoding "application/protobuf". Only "application/json" is supported. package:functions_framework/src/json_request_utils.dart 42 mustBeJson package:functions_framework/src/targets/cloud_event_targets.dart 90 _decodeBinary package:functions_framework/src/targets/cloud_event_targets.dart 66 _eventFromRequest package:functions_framework/src/targets/cloud_event_targets.dart 53 CloudEventWithContextFunctionTarget.handler package:functions_framework/src/run.dart 49 _forbiddenAssetMiddleware.<fn> package:functions_framework/src/logging.dart 171 cloudLoggingMiddleware.hostedLoggingMiddleware.<fn>.<fn> dart:async _CustomZone.runGuarded package:functions_framework/src/logging.dart 168 cloudLoggingMiddleware.hostedLoggingMiddleware

Metadata

Metadata

Assignees

Labels

kind/questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions