I recently started receiving the following error when publishing to a Pub/Sub when invoked within a Cloud Function (note I cannot replicate this error locally):
> AuthMetadataPluginCallback "<google.auth.transport.grpc.AuthMetadataPlugin object at 0x3e533b442910>" raised exception!
> ...
> requests.exceptions.ConnectionError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe'))
I have not changed anything in the way I publish topics and am following the Google documentation:
message_future = publisher.publish(topic_path, data=params_bytes)
Any thoughts on why this is happening?
Here are some additional logs: