Im using HTTPS provided by Google Cloud with an App Engine project.
And https://example.com works intermittently.
Many a times I see the error unable to connect.
But https://example.appspot.com will be working.
How to resolve this ?
Related
I have made an app of Django Channels and its working perfect locally,but when I deployed it to production (Google Cloud Platform) it's giving me:
(index):42 WebSocket connection to 'wss://appname-263701.appspot.com/ws/chat/user2/' failed: Error during WebSocket handshake: Unexpected response code: 400
I can't figure whats the problem is, is it a problem of WSS? The app is working fine locally.
If need some code to review I can also upload that! Just need a guide how I can fix this
I think you are using Standard App Engine Environment, and WebSockets are only supported in the Flexible Environment for App Engine. So, I would suggest you to change the environment from Standard to Flexible, see here for the app.yaml Configuration File in Flex. This way, you will be able to use WebSockets functionality implemented on App Engine.
I am trying to use the remote data store on Google App Engine on localhost, but I really can't get it to work.
I have tried following this advice Remote_api configuration with App Engine which does seem to handle the first request and uses the remote datastore (I think), but on the subsequent request it does not, and I get the error:
"BadRequestError: app s~myapp cannot access app dev~myapp's data"
I have also tried the following:
BadRequestError: app s~myapphr cannot access app dev~myapphr's data. Why?
Google App Engine trying to access dev data
and a lot of other suggestions, but without any luck.
Any ideas on how to use the remote datastore on localhost ?
thanks
Thomas
I have created google app engine application. It works fine in my local system and also deployee successfully on server. but that url http://****.appspot.com/_ah/api/employeeendpoint/v1/employee/1 gives me below response.
{"error":{"errors":[{"domain":"global","reason":"sslRequired","message":"SSL is required to perform this operation."}],"code":403,"message":"SSL is required to perform this operation."}}
I have also try with https://****.appspot.com/_ah/api/employeeendpoint/v1/employee/1 but still not working.
Certain Google Cloud Platform products require SSL, you can simply enable SSL from your Cloud Console and it should work.
The documentation for App Engine, for Compute Engine, and for Cloud SQL.
I'm using Android Studio(0.5.8) on Window7 x64 for developing my Android App with Google AppEngine backend.
If my machine is having direct internet access and I launch backend locally (as DevApp Server) and access my API Endpoints through webbrowser (chrome) it is all working as expected.
Accessing api explorer is also working fine from webbrowser.
http://localhost:8080/_ah/api/explorer
But if I have configured internet through http proxy (in Android Studio and also in webbrowser) then webbrowser displays initial page of backend but can't access endpoint api explorer.
And deploying appbackend in Google AppEngine also fails with errors.
gradlew backend:appengineUpdate
Same is working fine if direct internet access is available (not via http proxy).
How can we make it work with http proxy also? Any help is appreciated, Thanks.
You should be able to tell any command that wraps appcfg (appengineUpdate is one of them) what the http/https proxy is.
In your build.gradle file add to the configuration (more info at https://github.com/GoogleCloudPlatform/gradle-appengine-plugin)
appengine {
httpProxy = "some proxy"
}
I'm not sure about the api explorer though.
My deployed site cant reference endpoints. It works perfectly locally but remotely I get a 403 in the client:
GET http://mailmanagerplus.appspot.com/_ah/api/discovery/v1/apis/agreement/v1/rpc?fields=methods%2F*%2Fid&pp=0 403 (Forbidden) rs=AItRSTOc4KBtnc5SIOEaPiMWPOclVYHqsA:153
All seems to have deployed successfully looking at the logs. I currently don't use any authentication.
Any direction would be useful as I'm very new to this.
you have to switch to "https" protocol if you want to use endpoints client library on the production.