google-cloud-pubsub

Unable to create subscription with a push end point on App Script (script.google.com)

痞子三分冷 提交于 2019-12-01 08:17:02
I have been playing around with the Pub/Sub REST API on Google App Script. I have tried, without success, to create a subscriber with a push end point at script.google.com. The push end point URL was created with the StateTokenBuilder API , which requires a query parameter to be present on the end point URL. The query parameter is further used to forward any request at the URL to a javascript function inside the app. Is it allowed to have a push end point URL with a query parameter? However, even if it is allowed, I am unable to register for a push end point at the domain script.google.com. I

Google Cloud Pubsub Data lost

百般思念 提交于 2019-12-01 08:16:25
I'm experiencing a problem with GCP pubsub where a small percentage of data was lost when publishing thousands of messages in couple seconds. I'm logging both message_id from pubsub and a session_id unique to each message on both the publishing end as well as the receiving end, and the result I'm seeing is that some message on the receiving end has same session_id , but different message_id . Also, some messages were missing. For example, in one test I send 5,000 messages to pubsub, and exactly 5,000 messages were received, with 8 messages lost. The log lost messages look like this: MISSING

Unable to run Google Cloud PubSub in c#, DLL problems

若如初见. 提交于 2019-12-01 07:49:59
问题 I am working on integrating Google Cloud PubSub into my c# project, I used NuGet to install 1.0.0-beta11, no errors at all. When I run my project and when it reaches the code that uses pubsub, I get the following error: An unhandled exception of type 'System.IO.FileLoadException' occurred in Google.Api.Gax.dll Additional information: Could not load file or assembly 'Google.Apis.Auth, Version=1.21.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab' or one of its dependencies. The located

Google Cloud Pubsub Data lost

做~自己de王妃 提交于 2019-12-01 07:21:29
问题 I'm experiencing a problem with GCP pubsub where a small percentage of data was lost when publishing thousands of messages in couple seconds. I'm logging both message_id from pubsub and a session_id unique to each message on both the publishing end as well as the receiving end, and the result I'm seeing is that some message on the receiving end has same session_id , but different message_id . Also, some messages were missing. For example, in one test I send 5,000 messages to pubsub, and

Unable to create subscription with a push end point on App Script (script.google.com)

若如初见. 提交于 2019-12-01 06:31:58
问题 I have been playing around with the Pub/Sub REST API on Google App Script. I have tried, without success, to create a subscriber with a push end point at script.google.com. The push end point URL was created with the StateTokenBuilder API, which requires a query parameter to be present on the end point URL. The query parameter is further used to forward any request at the URL to a javascript function inside the app. Is it allowed to have a push end point URL with a query parameter? However,

Topic is created on cloud pub/sub but unable to create watch on that topic

孤街醉人 提交于 2019-12-01 05:06:54
问题 I want to create watch on cloud pub/sub topic but unable to create it. For that I'm using the rest request request_Req.post({ url:'https://www.googleapis.com/gmail/v1/users/me/watch', headers:{ 'content-type': 'application/json', 'Authorization': 'Bearer '+ access_token, }, scope : [ 'https://mail.google.com/' ], 'body': JSON.stringify({ 'topicName' : "/projects/ProjectId/topics/TopicId", 'labelIds' : ["INBOX"] }); }),function(error, resp, body){ }); But I'm getting the error message Error

ImportError: cannot import name pubsub_v1

这一生的挚爱 提交于 2019-12-01 04:43:45
I need to import Pubsub_v1 and bigquery from google.cloud module. I have installed it and pip freeze shows below : gapic-google-cloud-pubsub-v1==0.15.4 google-cloud-bigquery==0.26.0 google-cloud-pubsub==0.27.0 proto-google-cloud-pubsub-v1==0.15.4 In my python script, i am importing the modules as below: import os from google.cloud import pubsub_v1 import time import json from google.cloud import bigquery The script is throwing error as : ImportError: cannot import name pubsub_v1 If i run $sudo pip install --upgrade google-cloud-pubsub then It is able to import pubsub but failing to import

Can someone explain the difference between GCM and Google Pub/Sub

♀尐吖头ヾ 提交于 2019-12-01 03:31:20
Google did answer the question here https://cloud.google.com/pubsub/faq But I'm still unclear on which scenarios would each be used for? Is there something that pub sub can do which GCM can't? The primary difference between Google Cloud Pub/Sub and GCM is the points for scaling. GCM is designed to scale to many individual publishers and subscribers, on the order of end user devices such as phones. Cloud Pub/Sub, on the other hand, is designed to scale to very large throughput from/to fewer publishers and subscribers. The two could actually be used together. Imagine, for example, you were

Dataflow Template Cloud Pub/Sub Topic vs Subscription to BigQuery

牧云@^-^@ 提交于 2019-12-01 01:46:26
I'm setting up a simple Proof of Concept to learn some of the concepts in Google Cloud, specifically PubSub and Dataflow. I have a PubSub topic greeting I've created a simple cloud function that sends publishes a message to that topic: const escapeHtml = require('escape-html'); const { Buffer } = require('safe-buffer'); const { PubSub } = require('@google-cloud/pubsub'); exports.publishGreetingHTTP = async (req, res) => { let name = 'no name provided'; if (req.query && req.query.name) { name = escapeHtml(req.query.name); } else if (req.body && req.body.name) { name = escapeHtml(req.body.name);

Can someone explain the difference between GCM and Google Pub/Sub

吃可爱长大的小学妹 提交于 2019-12-01 00:12:37
问题 Google did answer the question here https://cloud.google.com/pubsub/faq But I'm still unclear on which scenarios would each be used for? Is there something that pub sub can do which GCM can't? 回答1: The primary difference between Google Cloud Pub/Sub and GCM is the points for scaling. GCM is designed to scale to many individual publishers and subscribers, on the order of end user devices such as phones. Cloud Pub/Sub, on the other hand, is designed to scale to very large throughput from/to