Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

pubsub has incremented API to v1 breaking the pubsub to bq #24

@edfine

Description

@edfine

The pubsub api has changed from v1beta2 to v1 breaking the tutorial
Expected: Data written to BQ table
Observed: 0 records in bq table. Logs from

https://console.cloud.google.com/logs/viewer?resource=container%2Fcluster_name%2Fcluster-1%2Fnamespace_id%2Fdefault&logName=projects%2Flucky-cosine-195918%2Flogs%2Fbigquery&expandAll=false&timestamp=2018-03-14T03:34:14.000000000Z&project=lucky-cosine-195918&authuser=3&organizationId=1002164320367&minLogLevel=0&interval=PT1H&dateRangeStart=2018-03-14T02:34:24.220Z&dateRangeEnd=2018-03-14T03:34:24.220Z

show

2018-03-13 19:56:23.000 PDT
Exception: <HttpError 404 when requesting https://pubsub.googleapis.com/v1beta2/projects/lucky-cosine-195918/subscriptions/tweets-new-tweets:pull?alt=json returned "Resource not found (resource=tweets-new-tweets).">

While the pub side shows logs of

{
 insertId:  "1e8irexg6pnptgw"  
 labels: {…}  
 logName:  "projects/lucky-cosine-195918/logs/twitter-to-pubsub"  
 receiveTimestamp:  "2018-03-14T03:26:29.773421176Z"  
 resource: {…}  
 severity:  "INFO"  
 textPayload:  "count is: 325000 at 2018-03-14 03:16:55.812871
"  
 timestamp:  "2018-03-14T03:26:27Z"  
}

Affected methods likely includes utils.py create_pubsub_client()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions