GCP - Cloud Pub/Sub
You wrote this code to publish a message but get a TypeError: 'str' object cannot be interpreted as bytes. What is the mistake?
publisher.publish(topic_path, 'Hello World')
publisher.publish(topic_path, 'Hello World')
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions