Title: Pub/Sub publish error (Invalid value at 'messages[0].data' (TYPE_BYTES)) · Issue #1947 · googleapis/google-cloud-python · GitHub
Open Graph Title: Pub/Sub publish error (Invalid value at 'messages[0].data' (TYPE_BYTES)) · Issue #1947 · googleapis/google-cloud-python
X Title: Pub/Sub publish error (Invalid value at 'messages[0].data' (TYPE_BYTES)) · Issue #1947 · googleapis/google-cloud-python
Description: Hi, I use "google_api_python_client-1.5.1" from pip. I try Pub/Sub message publish to topic. topics.publish(topic='topicId', body={ 'messages': [{ 'messageId': str(uuid.uuid4()), 'data': base64.encodestring('Hello') }] }).execute() error...
Open Graph Description: Hi, I use "google_api_python_client-1.5.1" from pip. I try Pub/Sub message publish to topic. topics.publish(topic='topicId', body={ 'messages': [{ 'messageId': str(uuid.uuid4()), 'data': base64.enc...
X Description: Hi, I use "google_api_python_client-1.5.1" from pip. I try Pub/Sub message publish to topic. topics.publish(topic='topicId', body={ 'messages': [{ 'messageId': str...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/1947
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pub/Sub publish error (Invalid value at 'messages[0].data' (TYPE_BYTES))","articleBody":"Hi,\n\nI use \"google_api_python_client-1.5.1\" from pip.\nI try Pub/Sub message publish to topic.\n\n```\ntopics.publish(topic='topicId',\n body={\n 'messages': [{\n 'messageId': str(uuid.uuid4()),\n 'data': base64.encodestring('Hello')\n }]\n }).execute()\n```\n\nerror occurred, and return this message.\n\n```\ngoogleapiclient.errors.HttpError: \u003cHttpError 400 when requesting https://pubsub.googleapis.com/v1/projects/projectId/topics/topicId:publish?alt=json returned \"Invalid value at 'messages[0].data' (TYPE_BYTES), \"SGVsbG8=\n```\n\nI look like this issue.\nhttps://github.com/GoogleCloudPlatform/gcloud-ruby/issues/713\n","author":{"url":"https://github.com/niwa-kazutomo","@type":"Person","name":"niwa-kazutomo"},"datePublished":"2016-06-30T07:53:16Z","url":"https://github.com/googleapis/google-cloud-python/issues/1947"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ca91d872-7664-5ea6-92c7-2f5647c1ce6c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F2C:41486:879A3F:B1DDFD:6AFE7A89 |
| html-safe-nonce | fc35b5c7a065e5dc984c0ee7c9d3619312b11417d065a6c2f84f3c1f88b341c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjJDOjQxNDg2Ojg3OUEzRjpCMURERkQ6NkFGRTdBODkiLCJ2aXNpdG9yX2lkIjoiMzk4OTI0NTUyOTg5MTQzNzE5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dfc2a2a2b664f0966a346296fc9e0f4edeb4907fc38566a25f019eb77c786217 |
| hovercard-subject-tag | issue:163103344 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/1947/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a7eaf8903524911329a0161355c46bf6bc4aeab13554fe04e1bb46bd09f76207/googleapis/google-cloud-python/issues/1947 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a7eaf8903524911329a0161355c46bf6bc4aeab13554fe04e1bb46bd09f76207/googleapis/google-cloud-python/issues/1947 |
| og:image:alt | Hi, I use "google_api_python_client-1.5.1" from pip. I try Pub/Sub message publish to topic. topics.publish(topic='topicId', body={ 'messages': [{ 'messageId': str(uuid.uuid4()), 'data': base64.enc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | niwa-kazutomo |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width