GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Demo "Publish messages and subscribe to Pub/Sub topics" doesn't work · Issue #1127 · googleapis/google-cloud-python

Demo "Publish messages and subscribe to Pub/Sub topics" doesn't work  #1127

New issue
Copy link
New issue
Copy link
Closed
Closed
Demo "Publish messages and subscribe to Pub/Sub topics" doesn't work #1127
Copy link
Assignees
dhermes
Labels
api: pubsubIssues related to the Pub/Sub API.

Description

@jpvic
jpvic
opened on Sep 8, 2015
Issue body actions

The 3th demo doesn't work on "https://cloud.google.com/python/"

from gcloud import pubsub

client = pubsub.Client(project='your-project-id')
topic = client.topic('your-topic-name')

topic.publish('Ping!')

subscription = topic.subscription('your-subscription-name')

messages = subcription.pull()

for ackid, message in messages:
print message

subscription.acknowledge([ackid for ackid, _ in messages])

messages = subcription.pull()
==> typo : subscription.pull()

the example ends with 👍 raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
It tried a json object, but then it asks for a string...

Activity

Next
  1. dhermes commented on Sep 8, 2015

    @dhermes
    dhermes
    on Sep 8, 2015
    Contributor
    More actions

    @jonparrott

  2. jpvic commented on Sep 8, 2015

    @jpvic
    jpvic
    on Sep 8, 2015
    Author
    More actions

    thank you for quick response. although it is short.. ;-)

    On Tue, Sep 8, 2015 at 9:20 PM, Danny Hermes [email protected]
    wrote:

    @jonparrott https://github.com/jonparrott

    —
    Reply to this email directly or view it on GitHub
    #1127 (comment)
    .

  3. dhermes commented on Sep 8, 2015

    @dhermes
    dhermes
    on Sep 8, 2015
    Contributor
    More actions

    @jpvic Sorry, that demo is owned by @jonparrott, so I was making him aware of this issue.

  4. theacodes commented on Sep 8, 2015

    @theacodes
    theacodes
    on Sep 8, 2015
    Contributor
    More actions

    Still can't assign issues to me? :P

    Typo is an easy fix, I'll investigate the other issue.

  5. dhermes commented on Sep 8, 2015

    @dhermes
    dhermes
    on Sep 8, 2015
    Contributor
    More actions

    Still can't. But don't you have a separate repo for these samples?

  6. theacodes commented on Sep 8, 2015

    @theacodes
    theacodes
    on Sep 8, 2015
    Contributor
    More actions

    Not the ones on the homepage. I'm still trying to get them removed altogether as that page does not provide enough context for users to successfully run the samples.

  7. dhermes commented on Sep 8, 2015

    @dhermes
    dhermes
    on Sep 8, 2015
    Contributor
    More actions

    OK. Is there a repo you could move this issue to (so you could be the assignee)?

  8. theacodes commented on Sep 8, 2015

    @theacodes
    theacodes
    on Sep 8, 2015
    Contributor
    More actions

    Yes - getting-started-python.

  9. dhermes commented on Sep 8, 2015

    @dhermes
    dhermes
    on Sep 8, 2015
    Contributor
    More actions

    Closing out in favor GoogleCloudPlatform/getting-started-python#6

  10. dhermes
    closed this as completedon Sep 8, 2015
  11. dhermes
    added
    api: pubsubIssues related to the Pub/Sub API.
    on Dec 31, 2015
  12. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  13. atulep
    added 3 commits that reference this issue on Apr 3, 2023

    docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) (#178)

    6555b79

    docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) (#178)

    8600058

    docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) (#178)

    dfbf744
  14. 166 remaining items

    Load more actions
  15. parthea
    added 12 commits that reference this issue on Nov 24, 2025

    docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) (#126)

    4eac51a

    chore: release 0.4.5 (#138)

    336496b

    docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) (#181)

    16904fd

    chore: release 2.1.4 (#184)

    2790983

    docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) (#137)

    5680494

    chore: release 1.2.0 (#141)

    c92c40d

    docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) (#377)

    8749d02

    docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) (#327)

    a616bab

    chore: release 2.6.0 (#337)

    a662cfc

    docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) (#327)

    f7c407d

    chore: release 2.6.0 (#337)

    3a21ae1

    refactor: Add **kwargs to parent constructor for Async API (#1127)

    1c54d49
  16. parthea
    added 3 commits that reference this issue on Mar 2, 2026

    chore: update renovate.json (#1127)

    38fa297

    chore: use gapic-generator-python 0.62.1 (#1127)

    70b5bfd

    docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) (#374)

    9c556ed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.