Questions tagged [cloud]

32273 questions
1

votes
1

answer
675

Views

how to add protobuf file for topic in gcloud pubsub?

In google cloud's pubsub, I can see that on creating a new topic, I have to create a new message. Can I store a protobuf file there instead of having to write the whole structure of message in key-value pairs? For the protobuf code that shall be written, I mean this. If the protobuf isnt meant to be...
kneelb4darth
1

votes
1

answer
1.3k

Views

Swift Query Into Firebase Firestore Nested Array

I have nested data that I'd like to display in a tableView. My data is structured like so... /users /userid name: 'John' age: 23 /likedPosts 0:post1 1:post2 For the tableview I'd like to display these posts (which have their own collection of data). In order to do that I need to... 1) Get the coun...
pmanning
0

votes
0

answer
5

Views

How to handle big textual data to create WordCloud?

I have a huge textual data that I need to create its word cloud. I am using a Python library named word_cloud in order to create the word cloud which is quite configurable. The problem is that my textual data is really huge, so a high-end computer is not able to complete the task even for long hours...
talha06
0

votes
0

answer
6

Views

why i am receiving this error in ship engine api tracking?

I am trying to implement tracking module in ship engine. While generating branded tracking page URL I am receiving the following error with status code 400. What does that error mean? 'request_id': '0697e518-6309-4215-96c1-6ed294c1fc88', 'errors': [ { 'error_code': '', 'message': 'trackingPageReques...
lasya valiveti
0

votes
0

answer
3

Views

How to get more metrics(Threads count, Handles Count) other than the compute metrics offered by oracle cloud for an instance?

I launched the windows instance. I found the config.yml file in the oracle cloud agent folder under program files. config.yml file looks like below telemetry: endpoint_format: 'https://telemetry-ingestion.{}.oraclecloud.com' endpoint_path: /20180401/metrics submission_headers: accept: application/js...
karthik_varma_k
0

votes
4

answer
428

Views

Explain the functionality of JSON

I think it is better to understand why I have so many problems with JSON that I explain you what my goal is: I work with Googles App Engine. There I want to store data. The data looks like user - username question - question date1 - date1 date2 - date2 An Android App have the 'simple' function to: S...
StefMa
0

votes
1

answer
11

Views

How does Spring Kafka/Spring Cloud Stream guarantee the transactionality / atomicity involving a Database and Kafka?

Spring Kafka, and thus Spring Cloud Stream, allow us to create transactional Producers and Processors. We can see that functionality in action in one of the sample projects: https://github.com/spring-cloud/spring-cloud-stream-samples/tree/master/transaction-kafka-samples: @Transactional @StreamListe...
codependent
0

votes
0

answer
3

Views

Google Cloud API client - How to enable specific API programmatically?

I am trying to automate few steps for a google cloud project. I will be receiving project ID and service account credentials (json) as input to my program. I would like to enable few APIs like 'Cloud Machine Learning API' or 'Resource Management API' for this service account programmatically. [Co...
PST
1

votes
1

answer
620

Views

Trigger a PubSub message from Cloud Functions

Firebase docs mention a straightforward way of subscribing to a pubSub topic. Does Cloud Functions or Firebase Admin SDK provide a way to publish pubSub events or we are limited to what is described in Google Cloud Platform docs: https://cloud.google.com/pubsub/docs/publisher#pubsub-publish-message...
Łukasz Patecki
1

votes
2

answer
620

Views

automatically register GCE instances in google cloud DNS?

How do I have my GCE instances register with an internal GCP DNS zone? Is there a built in way to do this? Edit: looks like I can do this https://cloud.google.com/sdk/gcloud/reference/dns/record-sets/transaction/add
red888
1

votes
2

answer
1k

Views

How to save a text with tabs and new lines in Firestore and get it back intact?

Realtime database used to add \n, \t, etc but it doesn't seem to be the case for Firestore. this might be something basic I'm missing. Either way, how can I save something like this and get it back with new lines and tabs intact: value: 'test newline another line' currently, I get it back like th...
TheeBen
1

votes
1

answer
2.2k

Views

readFileSync from an URL for Twitter media - node.js

I need to use an URL to import a media to Twitter. But I can't figure out how to use an URL without having to download the image, save it temporarily on the server and deleted after... I'm using Google Cloud to store the images that's why I can't access it directly. That's what I'm trying to do : va...
Phil
1

votes
1

answer
681

Views

How to log MDC with Spring Sleuth 2.0?

referring to quesition/answer in How to log MDC with Spring Sleuth? I think this has/will change(d) with spring-cloud 2.0 as there is no SpanLogger or Slf4jSpanLogger anymore (or I don't find it) Wouldn't it be nice if application properties spring.sleuth.baggage-keys and spring.sleuth.propagation-k...
Dirk Hoffmann
1

votes
1

answer
260

Views

Firebase deploy get ID with onCreate for push notifications

I'm creating an iOS app and sending notifications. I'm trying to get an id from Firebase but the code below doesn't work. exports.pushNotifications = functions.database.ref('/message/{messageId}') .onCreate((snap, context) => { var messageId = event.params.uid; . . . I tried this code from the docum...
coonie
1

votes
1

answer
407

Views

Add GCP credentials to airflow via command line

Airflow allows us to add connection information via command-line airflow connections. This can help with automated deployment of airflow installations via ansible or other dev-ops tools. It is unclear how connections to google cloud platform (service accounts) can be added to ariflow via command lin...
Sebastian
1

votes
1

answer
423

Views

Dialog api v2 - Unexpected error while acquiring application default credentials: Could not load the default credentials

i am trying to implement a chat bot application with google dialog flow. i was fallowing this github tutorial https://github.com/dialogflow/dialogflow-nodejs-client-v2 to implement api. this is my code var express = require('express'); var router = express.Router(); const projectId = 'my-project-id'...
pavithra rox
1

votes
1

answer
152

Views

Permission denied when creating a storage trigger with a named storage bucket

Insufficient permissions to (re)configure a trigger (permission denied for bucket images). Please, give owner permissions to the editor role of the bucket and try again. I am pretty new to firebase. I am trying to implement that if i upload image it resizes it and change the name. The bucket name in...
Anton
1

votes
2

answer
2.9k

Views

When using the onUpdate function in Firebase, how do I retrieve the record that has been updated?

When using the cloud functions on firebase, with the onUpdate trigger, how do I retrieve the record that has been updated (in other words, the record that triggers the function)? I am using JavaScript to interface with the Firebase database.
Ryan
0

votes
0

answer
4

Views

How to set environments automatic?

i want to set my environments automatically when i bind a Service with my application. For Example: Now i have to set my environments for the datasource manuell, but i want to set it automatically, how does it work ? thorntail: datasources: data-sources: FleetDS: driver-name: postgresql connection-u...
Kaywan Barzani
1

votes
1

answer
1.5k

Views

Ansible with Google Cloud Platform GCE

I used Ansible to create a gce cluster following the guideline at: https://docs.ansible.com/ansible/latest/scenario_guides/guide_gce.html And at the end of the GCE creations, I used the add_host Ansible module to register all instances in their corresponding groups. e.g. gce_master_ip But then when...
Tim Raynor
1

votes
1

answer
674

Views

Firebase StartAfter in query not working as expected

I am using firebase firestore as my database and i have written firebase functions to retrieve data from the firestore database. What i am trying to achieve is pagination and as per the docs i have implemented the code for my firebase function. Below is the code: exports.getBillList = functions.htt...
Chetan
1

votes
2

answer
1k

Views

Create GCR secret error: exactly one NAME is required, got 26

I am trying to create a docker-registry secrete for GCR, but am getting a really cryptic error message. This is the kubectl cmd that I am running: kubectl create secret docker-registry gcrsecret --docker-username=_json_key --docker-password=”$(cat wk-test-1-b3c9659d9a07.json)” --docker-server=ht...
Ryan Salmons
1

votes
2

answer
967

Views

Network default is not accessible to Dataflow Service account

Having issues starting a Dataflow job(2018-07-16_04_25_02-6605099454046602382) in a project without a local VPC Network when I get this error Workflow failed. Causes: Network default is not accessible to Dataflow Service account There is a shared VPC connected to the project with a networked called...
Brodin
1

votes
1

answer
513

Views

missing script: build - firebase deploy

When I deployed my firebase function project, this error appeared 'missing script:build' and I try to fix it but it fails. Please help me This is error screenshot
Hassan Salah
1

votes
2

answer
235

Views

Firestore Rules: validate data does not have field

So I currently have two roles for all users: isAdmin and isReader. An Admin is allowed to read and write data and an Reader is allowed to read data. When someone creates an account he has no rights. Not even isReader. Only an Admin can change rules. This is how I planned to do it: Once someone crea...
Jonas
1

votes
1

answer
197

Views

How/Can I manually call a trigger Firebase Function?

In our app we are constantly using callable functions and sometimes the cold start can be a headache, given the fact that we are still developing it and there are no users using them other than us. What we thought to speed up this process is to call every function (they're not much, around 20 at the...
Franco Muñiz
1

votes
1

answer
63

Views

Package.json file not found when using kubernetes

I trying to setup kubernetes on my local environment using docker. I've built the necessary docker image with this Dockerfile: FROM node:9.11.1 WORKDIR /usr/src/app COPY package.json /usr/src/app/ RUN npm install COPY . /usr/src/app/ EXPOSE 3002 CMD [ 'npm', 'start' ] I then pushed this image to my...
Christofer Johnson
1

votes
1

answer
114

Views

Firestore Import - no error, but no changes

I'm attempting to use the instructions here: https://firebase.google.com/docs/firestore/manage-data/export-import to a) do periodic backups of data from my production instance, and b) copy data between production/staging/dev instances. For what it's worth, each instance is in a separate Firebase pro...
Josh
1

votes
1

answer
791

Views

How to inner-join in firestore

I want to build a view to show some events inside a listview in my app like this: I have these two tables: Users   Events But I don't know how do a 'inner join' between the tables USERS and EVENTS... I tried this: import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/materi...
Matheus Ribeiro
1

votes
1

answer
439

Views

Google Cloud: How to list granted permission for user or service account?

Is it possible to get a list of all permissions that have been granted (specifically or transitively) to a user or GCP service account, ideally filtered by resource, through gcloud or the web UI?
Andreas Jansson
1

votes
1

answer
134

Views

Can debug logging be added to firestore rules functions?

Given that the firestore rules structure allows for functions, is there some way to add debug logs to those rule-functions ? .. in order to verify that the function you expect, is in fact being called. I see that with the simulator it shows a red X at the line in the rules sturcture, where access is...
Gene Bo
1

votes
1

answer
854

Views

Sending E-Mail through firebase functions

Its there a way to use an API like(sendgrid, mailgun) to send Email through Firebase cloud functions or it is considered as an Outbound connection?
Tido
1

votes
1

answer
652

Views

Using Offline Persistence in Firestore in a Flutter App

I'm developing a app that uses Firebase's Firestore to send data to the web. One of the functions of the app is being able to save data in the device while being offline and send it to Firestore when internet connection is restored. I activated offline persistence but it dosen't work. DEBUG CONSOLE:...
Brenno Fagundes
1

votes
1

answer
196

Views

Spring Cloud Stream @SendTo Annotation not working

I'm using Spring Cloud Stream with Spring Boot. My application is very simple: ExampleService.class: @EnableBinding(Processor1.class) @Service public class ExampleService { @StreamListener(Processor1.INPUT) @SendTo(Processor1.OUTPUT) public String dequeue(String message){ System.out.println('New mes...
italktothewind
1

votes
1

answer
133

Views

How to use wildcards in firestore cloud functions?

I'm trying to use a wildcard in a cloud function with firestore like this: exports.function_name= functions.https.onRequest((req, res) => { return admin.firestore().collection('users/messages/{messageCollectionId}') but it does not work. It works if I use an actual id, instead of the wildcard. Any h...
Raul Garcia
1

votes
2

answer
376

Views

Add a Document's Document ID to Its Own Firestore Document - Swift 4

How do I go about adding the document ID of a document I just added to my firestore database, to said document? I want to do this so that when a user retrieves a 'ride' object and chooses to book it, I can know which specific ride they've booked. The problem that i'm facing is that you can't get the...
yambo
1

votes
1

answer
158

Views

Cloud composer tasks fail without reason or logs

I run Airflow in a managed Cloud-composer environment (version 1.9.0), whic runs on a Kubernetes 1.10.9-gke.5 cluster. All my DAGs run daily at 3:00 AM or 4:00 AM. But sometime in the morning, I see a few Tasks failed without a reason during the night. When checking the log using the UI - I see no l...
Ary Jazz
0

votes
0

answer
5

Views

Stop Streaming pipeline when no more messages to consume

I have a streaming dataflow pipeline job which reads messages from a given pub-sub topic. I understand there is an auto-ack once the bundles are committed. How to make the pipeline stop where there are no more messages to consume?
user3483129
1

votes
1

answer
107

Views

Difference between get() and snapshot() in Cloud Firestore

I am reading some data from Firebase's Cloud Firestore but I've seen several ways to do it. The example I saw used the get and onSnapshot function like this: db.collection('cities').doc('SF') .onSnapshot(doc => { console.log(doc.data()); }); or this var docRef = db.collection('cities').doc('SF'); do...
rubotero
1

votes
3

answer
894

Views

Failed to resolve: com.google.firebase:firebase-firestore:16.0.1

I'm switching from realtime database to firestore and I keep getting the same error: Failed to resolve: com.google.firebase:firebase-firestore:16.0.1 I have looked at similar questions on this site but still haven't been able to fix this problem. Here is the code from my app gradle: apply plugin: 'c...
minikate

View additional questions