google-cloud-platform

Google Cloud Function Authorization Failing

◇◆丶佛笑我妖孽 提交于 2021-02-04 06:00:44
问题 I have a Private Google Cloud Function. So I want to Authenticate to the Cloud Function with Authorization: Bearer token Header. But I'm getting 401 Unauthorized as the response. I created the private Cloud Function using: gcloud beta functions deploy MyFunction --runtime go111 --trigger-http --memory 128 --region us-central1 --source gs://bucketname/code.zip I created a service account and assigned it permission to access the cloud function: gcloud beta functions add-iam-policy-binding

Google Cloud Function Authorization Failing

自古美人都是妖i 提交于 2021-02-04 06:00:04
问题 I have a Private Google Cloud Function. So I want to Authenticate to the Cloud Function with Authorization: Bearer token Header. But I'm getting 401 Unauthorized as the response. I created the private Cloud Function using: gcloud beta functions deploy MyFunction --runtime go111 --trigger-http --memory 128 --region us-central1 --source gs://bucketname/code.zip I created a service account and assigned it permission to access the cloud function: gcloud beta functions add-iam-policy-binding

Google Cloud Function Authorization Failing

末鹿安然 提交于 2021-02-04 06:00:01
问题 I have a Private Google Cloud Function. So I want to Authenticate to the Cloud Function with Authorization: Bearer token Header. But I'm getting 401 Unauthorized as the response. I created the private Cloud Function using: gcloud beta functions deploy MyFunction --runtime go111 --trigger-http --memory 128 --region us-central1 --source gs://bucketname/code.zip I created a service account and assigned it permission to access the cloud function: gcloud beta functions add-iam-policy-binding

How to deal with semantic version data type in BigQuery

↘锁芯ラ 提交于 2021-02-02 09:59:39
问题 I know that there is no data type in BigQuery. What would you prefer to deal with semantic versions in BigQuery? I have the following schema: software:string, software_version:string software_version column is string but the data I store there is in semver format: `MAJOR.MINOR.PATCH-prerelease I especially want to perform operators < > = . select '4.0.0' < '4.0.0-beta' This returns true , but according to the semver definition it's false. Because the char - is used for prerelease. 回答1: Below

Error when running Youtube Data Service in App Scripts (js) – Daily Limit for Unauthenticated Use Exceeded

∥☆過路亽.° 提交于 2021-02-02 09:37:28
问题 I'm running a custom function in App Scripts which utilizes the Youtube (YouTube Data API v3) advanced service. When running, I get the following error: GoogleJsonResponseException: API call to youtube.videos.list failed with error: Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup. (line 15). I'm not sure how to authenticate my application. I've added it to a cloud project and enabled the API's. Update: Here's what my code looks like: function getYoutubeData

Error when running Youtube Data Service in App Scripts (js) – Daily Limit for Unauthenticated Use Exceeded

白昼怎懂夜的黑 提交于 2021-02-02 09:35:21
问题 I'm running a custom function in App Scripts which utilizes the Youtube (YouTube Data API v3) advanced service. When running, I get the following error: GoogleJsonResponseException: API call to youtube.videos.list failed with error: Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup. (line 15). I'm not sure how to authenticate my application. I've added it to a cloud project and enabled the API's. Update: Here's what my code looks like: function getYoutubeData

firebasehosting.googleapis.com/network/active_connections: No such file or directory

僤鯓⒐⒋嵵緔 提交于 2021-01-29 22:38:24
问题 According to firebasedatabase metrics firebasedatabase Metrics from Firebase. Launch stages of these metrics: BETA GA The following metric type names must be prefixed with firebasedatabase.googleapis.com/. That prefix has been omitted from the entries in the table. Follow its guidance I tried reached it from gshell and I got 来源: https://stackoverflow.com/questions/61551885/firebasehosting-googleapis-com-network-active-connections-no-such-file-or-direc

Where to place 'input.json file' when do Google Cloud Machine Learning engine prediction?

人盡茶涼 提交于 2021-01-29 22:33:50
问题 I am using Google Cloud ML Engine to do local prediction by run: gcloud ml-engine local predict --model-dir=$MODEL_DIR --json-instances $INPUT_FILE --framework $FRAMEWORK assume: MODEL_DIR="gs://<bucket>/model.joblib" FRAMEWORK="SCIKIT_LEARN" input file input.json is in hardisk (d:\predict) How to specify: INPUT_FILE= ? I have manually upload the input file into my gc bucket, but get error: ERROR: (gcloud.ml-engine.local.predict) Unable to read file [gs://<bucket>/input.json]: [Errno 2] No

Changing External IP's Geolocation of Google Compute Engine

冷暖自知 提交于 2021-01-29 22:10:54
问题 I am creating my own VPN server. I want it to have an IP address of (say) Canada. I created an Compute Instance in the region of my choice and reserved a static IP in that region as well but when I check the external IP Geolocation it still says Mountain view CA. I tried this answer but it didn't worked. In AWS when I chose a region the IP is located in that region itself. I would like to know how to change Geolocation of External IP in Google Compute? 回答1: By Default all External IP

DEADLINE_EXCEEDED while adding tasks to Google Cloud Tasks

試著忘記壹切 提交于 2021-01-29 21:54:53
问题 I'm occasionally getting an error called DEADLINE_EXCEEDED while adding tasks to Google Cloud Tasks from Node.js client. It's only 17 tasks that I tried to add in a for-loop. Not sure why this is happening occasionally and sometimes works perfectly fine! Here is the detailed error log: Error: 4 DEADLINE_EXCEEDED: Deadline exceeded at Object.callErrorFromStatus (/Users/gijo/Desktop/workspace/flying-press-server/node_modules/@grpc/grpc-js/build/src/call.js:30:26) at Object.onReceiveStatus (