google-app-engine

appengine sees User as additional parameter

▼魔方 西西 提交于 2021-01-29 03:50:48
问题 I am using OAuth with my app-engine server. It's rather simple to do, simple add User as one of the parameters. But when I do I get the compile error Multiple entity parameters. there can only be a single entity parameter per method... @ApiMethod(path = "updateDocument", name = "updateDocument", httpMethod = ApiMethod.HttpMethod.POST) public void updateDocument(User user, MyDocument input){ ... } It works fine for the methods of the form public MyBean sayHiUser(@Named("name") String name,

appengine sees User as additional parameter

依然范特西╮ 提交于 2021-01-29 03:40:27
问题 I am using OAuth with my app-engine server. It's rather simple to do, simple add User as one of the parameters. But when I do I get the compile error Multiple entity parameters. there can only be a single entity parameter per method... @ApiMethod(path = "updateDocument", name = "updateDocument", httpMethod = ApiMethod.HttpMethod.POST) public void updateDocument(User user, MyDocument input){ ... } It works fine for the methods of the form public MyBean sayHiUser(@Named("name") String name,

Static image folder with google app engine

喜欢而已 提交于 2021-01-29 03:17:32
问题 There are already a lot of post dealing with this issue but I wasn't able to find a solution to my problem. I am using the Google App Engine Launcher to create a small web application using python. I need to display a picture ( /images/chartname.png ) on my page. I am using the following line of html code <img width=150 src="/images/chartname.png"> but the picture does not show up. Additionally when I open http://localhost:8080/images I get an error 404. Here's the content of my .yaml file:

Google app engine unable to create a DevAppServer

一个人想着一个人 提交于 2021-01-28 22:28:30
问题 When trying to create a local app server to test my web app, I'm completely unable to do so. Somebody else has seen the same error here and was advised that it was an issue with JDK>12, however I'm only using java 8. I'm able to deploy the app as normal but not create the local server. I've tried it through powershell using the native gcloud CLI, using the intellij plugin and now through the maven plugin and get the same issue each time. Any help would be much appreciated. stacktrace Apr 18,

How to use image format YUV_420_888 for MLKIT of Google

感情迁移 提交于 2021-01-28 22:07:14
问题 ImageReader get each frame from camera preview is image with format YUV_420_888 , i want to use it as input for MLKIT. In document of google, i can run detector with input is: Bitmap media.Image ByteBuffer ByteArray A File I tried convert YUV_420_888 to above objects but I failed 回答1: I used this function to convert the image frame to NV21 format and set the image type in metadata in FirebaseVisionImage fun YUV_420_888toNV21(image: ImageProxy): ByteArray { val width = image.width val height =

node.js app fails to deploy in appengine: gcloud app deploy to appengine fails, issues with cached base image and node cache

五迷三道 提交于 2021-01-28 21:18:00
问题 Folks I am trying to deploy a simple node.js app onto appengine. Every time I deploy the same using gcloud deploy, I get these warning and errors in the logs. I am using the config module in node.js also to load some general environment variables I need. Any pointers apprecaited if others have come across similar runtime issues? here is log when I execute the command: gcloud app deploy app.yaml No cached base image found for entry us.gcr.io/.../app-engine-build-cache/node-cache

How to use image format YUV_420_888 for MLKIT of Google

大兔子大兔子 提交于 2021-01-28 20:10:40
问题 ImageReader get each frame from camera preview is image with format YUV_420_888 , i want to use it as input for MLKIT. In document of google, i can run detector with input is: Bitmap media.Image ByteBuffer ByteArray A File I tried convert YUV_420_888 to above objects but I failed 回答1: I used this function to convert the image frame to NV21 format and set the image type in metadata in FirebaseVisionImage fun YUV_420_888toNV21(image: ImageProxy): ByteArray { val width = image.width val height =

ssl error, record too long (localhost)

萝らか妹 提交于 2021-01-28 18:40:20
问题 Installed google app engine and when I run localhost my page is not displayed. I get this error (Error code: ssl_error_rx_record_too_long) How can I fix this? And if I try running the app on port 453 I get the erorr Unable to bind to port... How can I fix this? 回答1: The dev_appserver that comes with GAE SDK does not support SSL. You'll need to access via http instead. 来源: https://stackoverflow.com/questions/20661082/ssl-error-record-too-long-localhost

ssl error, record too long (localhost)

懵懂的女人 提交于 2021-01-28 18:29:24
问题 Installed google app engine and when I run localhost my page is not displayed. I get this error (Error code: ssl_error_rx_record_too_long) How can I fix this? And if I try running the app on port 453 I get the erorr Unable to bind to port... How can I fix this? 回答1: The dev_appserver that comes with GAE SDK does not support SSL. You'll need to access via http instead. 来源: https://stackoverflow.com/questions/20661082/ssl-error-record-too-long-localhost

Recover Cloud functions default service account with the undelete POST call

这一生的挚爱 提交于 2021-01-28 14:11:38
问题 I have used Google Cloud Functions for quite a long time, with no real authentication problem for now. Today I meet this error while deploying a new function ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Bad Request], message=[Default service account 'PROJECT-ID@appspot.gserviceaccount.com' doesn't exist. Please recreate this account (for example by disabling and enabling the Cloud Functions API), or specify a different account.] I tried several things : disable/enable