google-app-engine

Support US region Appengine project with GDPR complaint

ε祈祈猫儿з 提交于 2020-04-18 07:18:30
问题 We built appengine Java application located in US region. Data center also located in same region. Now we wanted to take this app to GDPR complaint support for EU customers. But current data center is in US, How should we accept GDPR complaint ? Some one suggested to create a new app in EU region and make available to EU. If this is the case, we should change a lot. Is it possible to support EU complaint without creating new app ? 来源: https://stackoverflow.com/questions/60314881/support-us

GAE - No API environment is registered for this thread

亡梦爱人 提交于 2020-04-18 06:12:33
问题 I have an spring-boot application deployed to google cloud using google app engine. There is a datastore with multiple entities. When I try to retrieve data through my app (app is uploaded to appengine, not locally) it always throws an error - There was an unexpected error (type=Internal Server Error, status=500). No API environment is registered for this thread. I am trying to make it work this way: @Bean public FirebaseAuth firebaseAuth() throws IOException { ClassLoader classLoader = this

How to fix the “Invalid JSON payload received. Unknown name” error

↘锁芯ラ 提交于 2020-04-15 20:26:14
问题 I try to get a proper response from the Google Safe Browsing API v4. Although I get the error "Invalid JSON payload received. Unknown name". I have used a payload based on the payload example mentioned at https://developers.google.com/safe-browsing/v4/lookup-api I have problems with the payload. I think it should be a string, not a real dict. When I use a dict I get the error: TypeError: has type , but expected one of: str, unicode The code I used is: result = urlfetch.fetch(url, method

How to fix the “Invalid JSON payload received. Unknown name” error

情到浓时终转凉″ 提交于 2020-04-15 20:25:43
问题 I try to get a proper response from the Google Safe Browsing API v4. Although I get the error "Invalid JSON payload received. Unknown name". I have used a payload based on the payload example mentioned at https://developers.google.com/safe-browsing/v4/lookup-api I have problems with the payload. I think it should be a string, not a real dict. When I use a dict I get the error: TypeError: has type , but expected one of: str, unicode The code I used is: result = urlfetch.fetch(url, method

How to fix the “Invalid JSON payload received. Unknown name” error

故事扮演 提交于 2020-04-15 20:25:10
问题 I try to get a proper response from the Google Safe Browsing API v4. Although I get the error "Invalid JSON payload received. Unknown name". I have used a payload based on the payload example mentioned at https://developers.google.com/safe-browsing/v4/lookup-api I have problems with the payload. I think it should be a string, not a real dict. When I use a dict I get the error: TypeError: has type , but expected one of: str, unicode The code I used is: result = urlfetch.fetch(url, method

How can I use .Net Core 3.0 image in Google Cloud?

こ雲淡風輕ζ 提交于 2020-04-13 17:41:46
问题 I'm using Google Cloud to host my .Net Core 2.2 application, but I want to update it to 3.0. My app.yaml looks like this service: api runtime: aspnetcore env: flex I know that I can specify the .Net Core version in runtime section. But Google Cloud Container Registry doesn't have .Net Core 3.0. I've checked it here. Should I make a custom container then? I have zero experience with docker . Maybe there is a ready-to-go container somehow. I didn't found any roadmap for update .Net Core images

Distinct using objectify

房东的猫 提交于 2020-04-11 03:10:42
问题 I am working google and engine and objectify, since for the last 3 hours i have been trying to write a distinct query in objectify. Can anyone tell me how to write a distinct query in objectify on a particular column? Regards, Sreekanth 回答1: Distinct only works with projection queries, which are not directly supported by Objectify yet. They are on the roadmap. Please star this issue: https://code.google.com/p/objectify-appengine/issues/detail?id=188 In the mean time, you can issue a low-level

How to upload a file in the google cloud storage using java

爷,独闯天下 提交于 2020-04-10 08:20:15
问题 I have been trying for a long time to upload a file in the Google cloud store using java. By goggling I have found this code, but cant able to understand exactly. Can anyone please customize this one to upload a file in the GCS? // Given InputStream inputStream; // object data, e.g., FileInputStream long byteCount; // size of input stream InputStreamContent mediaContent = new InputStreamContent("application/octet-stream", inputStream); // Knowing the stream length allows server-side

How to upload a file in the google cloud storage using java

混江龙づ霸主 提交于 2020-04-10 08:18:06
问题 I have been trying for a long time to upload a file in the Google cloud store using java. By goggling I have found this code, but cant able to understand exactly. Can anyone please customize this one to upload a file in the GCS? // Given InputStream inputStream; // object data, e.g., FileInputStream long byteCount; // size of input stream InputStreamContent mediaContent = new InputStreamContent("application/octet-stream", inputStream); // Knowing the stream length allows server-side

Video Streaming from Google Cloud Storage

不问归期 提交于 2020-04-08 10:39:18
问题 How would we go about getting a video from google cloud storage and streaming that video to a mobile device? I dont see anything related to videos in the Java API like there is for getting images with ImagesServiceFactory The videos are only going to be a maximum of 10-15 seconds long if that makes any difference. Any advice on how to proceed here would be great 回答1: There is no difference between streaming a video and downloading any other file from the Cloud Storage. Thus, no special video