We are prototyping on a Raspberry Pi using the Google Calendar API. Each user of this service will connect his or her own calendar to the Raspberry Pi and use the calendar information. The Raspberry Pi we are using does not have a keyboard or display connected to it. We are planning to connect a smartphone to the Raspberry Pi
Tag: google-cloud-platform
Cloud Build service account no access to storage.objects.get
I am trying to get a Google Cloud Functions to print something from a file in a storage bucket. I have the file stored in a bucket, an authenticated service account with Storage Admin, Cloud Run Admin, Service Account User and Cloud Functions Admin and the following python script. I try to deploy this with the following code: To which
TypeError: ‘NoneType’ object is not subscriptable on GAE instance assigning JSON to python variable
I’m getting an error TypeError: ‘NoneType’ object is not subscriptable when assigning JSON to a python variable like this sheet_id = data[“sheetID”]. It only happens on my Google App Engine instance. I don’t get it when running my Flask app locally and sending POST requests to the app with Postman. Here’s the code snippet The strange thing is that the
Content-Security-Policy problems Google Cloud Function
I’ve build a google cloud function that takes an input and sends it to Firestore. I’ll need to call it inside a Firefox WebExtension, that I’ll use on Twitter. Not the first time I’m doing this type of project but this time I’m having issues regarding the “Content-Security-Policy”. I’ve try to call my GC function with the GC testing tool,
Can’t iterate over files within a folder in google cloud notebooks instance
I am using the notebooks instance within the AI platform in google cloud console. I have uploaded a folder inside which contains around 30 csv files. I run the following code to iterate over the files, However, for some reason, I can seem to iterate over the files. The cell just ends with no errors. How do I fix this?
Write to Google Cloud storage bucket as if it were a directory?
I’ve written a python script that resamples and renames a ton of audio data and moves it to a new location on disk. I’d like to use this script to move the data I’m resampling to a google storage bucket. Question: Is there a way to connect/mount your GCP VM instance to a bucket in such a way that reading
Get environment variables in a cloud function
I have a Cloud Function in GCP that queries BigQuery in a specific project/environment. As I have multiple environments I would like to get the current project/environment of the cloud function. This is so that I can access BigQuery in the corresponding environment. Of course I could just hardcode the project_id, but I would like to do this programmatically. According
Unknown error has occurred in Cloud Functions
First, it looks like this thread but it is not: An unknown error has occurred in Cloud Function: GCP Python I deployed a couple of times Cloud Functions and they are still working fine. Nevertheless, since last week, following the same procedure I can deploy correctly, but testing them I get the error “An unknown error has occurred in Cloud
Calling Firestore Database from another Cloud Project shows “Permission Error”
After reading every piece of question, documentation available online, we couldn’t find a solution, so posting a question here. Our Setup : Project FB: Used only for Firestore in Dev mode. We want to access data from this project in our dev backend server, hosted on a different cloud project. Project GCP: A GCP Project with app deployed in GAE
Google Cloud Translate API client attribute
I am trying to use the Google Translate API. I’ve installed the required libraries as per their guide and created a virtual environment. However, when running the following sample code which was provided on the website, I keep getting an error regarding the attributes of the library: Output: Why am I getting this error? Answer Given that a long time