I created an application using GAE Flexible. I can deploy and use the application without any problems. Then I added the upload file to Google Cloud Storage using JSON service_account , and it works correctly in localhost. I deployed it without any errors, but when the deployment is complete and I try to view my application, I see the following error: 502 server error :
Error: Server Error The server encountered a temporary error and could not complete your request. Please try again in 30 seconds.
My application is a very simple application without a lot of requests, so I don't need to backtrack. In the log from the console, I see the following error:
[error] 32#32: *9771 connect() failed (113: No route to host) while connecting to upstream, client: 130.211.3.171, server: , request: "GET /_ah/health HTTP/1.1", upstream: "http://172.18.0.2:8080/_ah/health", host: "10.128.0.2"
here is my class for hosting images in cloud storage:
@SuppressWarnings("serial") @WebServlet(name = "upload", value = "/upload") @MultipartConfig() public class UploadServlet extends HttpServlet { private static final Logger logger = LoggerFactory.getLogger(UploadServlet.class); private static final String BUCKET_NAME ="myBUCKET_NAME";
Does anyone know how I can solve this problem? Thanks
source share