Questions tagged [google-app-engine-golang]
37 questions
0
votes
1 answer
Protobuf custom options not showing in JSON made by protojson library
I'm trying to extract Protobuf custom options from a FileDescriptorSet generated by the protoc compiler. I'm unable to do so using protoreflect. So, I tried to do so using the protojson library.
PS : Importing the Go-generated code is not an option…

mujtaba1747
- 33
- 1
- 6
0
votes
1 answer
Error connection to Google Cloud Postgres with GORM v2 after upgrade of GORM
After upgrading to Gorm versions:
gorm.io/driver/postgres v1.0.2
gorm.io/gorm v1.20.2
Not able to connect to Google Cloud SQL PostgreSQL v12
The connection worked without issues on older GORM versions with:
db, err := gorm.Open("postgres",…

Brian B
- 191
- 8
0
votes
1 answer
404 error when serving files in paths not root
I am running this command "go run webapp/main.go." The reason is that app engine will call my app from the root directory, so I changed the paths to work from calling the file from root. I also do not mind if you have Go best practices tips.
└──…

Rahmi Pruitt
- 569
- 1
- 8
- 28
0
votes
1 answer
Code displaying an URL rather than the reponse of the request GCP with Go
I'm having hard times trying to display the result of a direction request in Google Cloud Platform. This is what I have tried:
package main
import (
"fmt"
"net/http"
"context"
"io/ioutil"
"google.golang.org/appengine"
…

Lis Dya
- 317
- 3
- 14
0
votes
1 answer
How to use Context when getting a direction with GO?
I'm having the following code to get the direction from Google Cloud:
import (
"google.golang.org/appengine"
"google.golang.org/appengine/urlfetch"
"fmt"
"io/ioutil"
"net/http"
)
const directionAPIKey = "APIKey"
const…

Lis Dya
- 317
- 3
- 14
0
votes
0 answers
"Could not find default credentials" error using Google Cloud Storage
We have a Golang application running in the Google App Engine, which reads a signing key using cloud.google.com/go/storage. When trying to deploy a newly updated version, it started receiving errors saying that it could not find default credentials,…

nafmo
- 448
- 4
- 19
0
votes
1 answer
How to have custom Go build flags and tools on GCP App Engine?
When using the App Engine' standard Go environment (https://cloud.google.com/appengine/docs/standard/go) is there a way to have custom go build flags but also tool?
Ideally, I'd love to have:
go install of the tool
go build with flags using the…

Julio Guerra
- 5,523
- 9
- 51
- 75