草庐IT

migrate_engine

全部标签

google-app-engine - Appengine cron.yaml 定义未显示在开发人员控制台中

我有一个包含多个模块和一个dispatch.yaml的基本应用引擎项目:my-project/boxes/app.yaml(默认模块)my-project/users/app.yaml(用户模块)我的项目/dispatch.yaml我正在尝试使用以下定义配置一个每小时的cronjob:cron:-description:hourlyboxpurgingurl:/api/boxes.purgeschedule:every1hourstarget:default我已经尝试将它添加到它所关注的模块中,所以将上面的定义放在文件中:'my-project/boxes/cron.yaml'并运行a

google-app-engine - 使用 App Engine VM 时总是得到 "502 Bad gateway"

我正在尝试为我的项目使用AppEngineVM(env:Go)。但是经过几天的搜索我仍然无法解决问题:我无法使用包“google.golang.org/appengine”和“google.golang.org/cloud/*”当我部署包含上述包的代码时,我可以成功部署,但是当我访问URL时,总是返回“502BadGateway”。如果我在没有上述包的情况下部署代码,一切都很好上述问题发生在更新我的一些包之后。因为我在执行“goget-u...”之后遇到了这个问题,在此之前一切正常当我在这里看到最后一次提交时(包“google.golang.org/appengine”):https:

postgresql - Google App Engine Golang 连接到 Cloud SQL Postgres unix 拨号没有这样的文件或目录

大家好,我在将我的golang应用程序连接到云sqlpostgres实例时遇到了问题。我刚刚完成了他们在GoogleCloudPlatform中的教程和示例代码,但它似乎不起作用。我只有两个文件app.yaml和main.go只是为了测试连接:应用.yamlruntime:goapi_version:go1env:standardenv_variables:CLOUDSQL_CONNECTION_NAME:bxustl2019proj:asia-east1:sqlstlbxuCLOUDSQL_USER:ustldbbxuCLOUDSQL_PASSWORD:bxuuserstldbCLO

google-app-engine - Go App Engine - 测试 Memcache 服务故障

我正在尝试测试我的GoGAE应用程序中的故障路径。我正在使用包含的appengine/aetest包进行测试,该包创建一个dev_appserver.py子进程来处理API调用,但是似乎不可能告诉APIstub开始失败(它总是有效)。我尝试过的一个有前途的事情是使用withmock实际模拟memcache包并使函数返回我想要的一系列错误。唉,我发现withmock与AppEngine不太兼容。 最佳答案 这听起来像是一个很好的功能请求。请在AppEngine问题跟踪器上提交一份! 关于g

google-app-engine - go-endpoints oauth2 用户始终为零

如何让apiexploreroauth2为go-endpoints工作?(范围https://www.googleapis.com/auth/userinfo.email)func(gs*GreetingService)Store(r*http.Request,req*Request,resp*Response)error{c:=appengine.NewContext(r)u:=user.Current(c)ifu!=nil{c.Infof("Hello,%v\n",u)}ifu!=nil{fmt.Printf("Hello,%v\n",u)}}u始终为nil,在java中我必须添加

google-app-engine - "datastore: internal error: server returned the wrong number of entities"检索不存在的对象时

使用GoogleAppEngine的goAPI,我尝试检索一个不存在的对象:funcentityKey(cappengine.Context,namestring)*datastore.Key{collectionKey:=datastore.NewKey(c,"EntityCollection","default_entitycollection",0,nil)returndatastore.NewKey(c,"Entity",name,0,collectionKey)}//.....varrecordEntityRecord//Somerandomtypekey:=entityKe

google-app-engine - GAE Go - 如何处理 ErrConcurrentTransaction 数据存储事务错误

我正在编写GoogleAppEngineGolang应用程序。在DatastoreTransactiondocumentation,有注释:Note:Ifyourappreceivesanerrorwhensubmittingatransaction,itdoesnotalwaysmeanthatthetransactionfailed.YoucanreceiveErrConcurrentTransactionincaseswheretransactionshavebeencommittedandeventuallywillbeappliedsuccessfully.Wheneverp

google-app-engine - 如何下载google app engine go sdk?

我想用go试试Googleappenginesdk。我遇到了以下错误administrator@jadehol725:~/Documents/softwares/go$svncheckouthttp://googleappengine.googlecode.com/svn/trunk/googleappengine-只读svn:E175002:无法连接到URL'http://googleappengine.googlecode.com/svn/trunk的存储库'svn:E175002:'/svn/trunk'上的OPTIONS请求失败:408RequestTime-o请问如何下载go

python - Google App Engine mail.Send 在 python2.7/smtplib.py 中返回 "TypeError: unhashable instance"

我正在尝试通过GoogleAppEngineDevelopmentServer在本地发送邮件:dev_appserver.py--show_mail_bodytrue--smtp_host=xxx--smtp_port=25--smtp_user=xxx--smtp_password=xxxapp.yamliferr:=mail.Send(c,&mail.Message{Sender:"xxx@xxx.com",To:[]string{"xxx@xxx.com"},Subject:"Test",Body:"TextBody",HTMLBody:"HTMLBody",});err!=ni

google-app-engine - 无法让 Google App Engine 托管 VM 的 Go Guestbook 演示在本地运行

我正在按照此页面上的说明进行操作:https://cloud.google.com/appengine/docs/go/managed-vms/试图使此处显示的示例留言簿演示正常工作:https://github.com/golang/appengine/tree/master/demos/guestbook该演示在部署时有效,但在本地运行时无效。当点击localhost:8080时,在本地运行会在浏览器中出现以下错误:servicebridgeHTTPfailed:Posthttp://10.0.2.2:41019/rpc_http:dialtcp10.0.2.2:41019:i/o