Google App Engine URI Error: /_ah/xrds - google-app-engine

In my GAE admin dashboard, everyday I have URI Error below:
/_ah/xrds 50 100%
The application was written in Java. Authentication type is (Experimental) Federated Login.
I checked the log:
"GET /_ah/xrds HTTP/1.0" 404 2107 - - "www.example.com" ms=27 cpu_ms=27
app_engine_release=1.8.0 instance=....
How to prevent this error? What is the cause of the URL error?
Thanks

Related

AWS API Gateway: 403 MissingAuthenticationTokenException for /static/js/bundle.js even though Authorization is set as None

I have set up this flow:
external world --> AWS API Gateway ---> VPC Link ---> Network Load Balancer ---> my single EC2 instance
The API Gateway is working because when I input the custom domain in my browser, it successfully visits the frontend service running on my EC2 instance.
However, for /static/js/bundle.js, I'm getting a 403 MissingAuthenticationTokenException error:
But the request to the main domain is ok:
Also, all other resources failed:
/static/js/vendors~main.chunk.js
static/js/main.chunk.js
/favicon.ico
/manifest.json
My frontend is written in React JS.
Note that it says: x-amzn-errortype: MissingAuthenticationTokenException.
But I have set the Authorization to be None:
What is going on?

social login with google in django 400 error

socail login with google in django getting Error 400: invalid_request
website name:boan.in
Authorization Error
Error 400: invalid_request
device_id and device_name are required for private IP: http://172.31.8.75:8080/accounts/google/login/callback/
Learn more
Pleasae help me to resolve
Google does not accept a local (private) IP address when doing Oauth or API calls. Instead, you can add an entry in your Windows hosts file for the local IP: \Windows\System32\drivers\etc
172.31.8.75 fakedomain.com
Then change your call back URI from http://172.31.8.75:8080/accounts/google/login/callback/
to http://fakedomain.com:8080/accounts/google/login/callback/
Finally browse the service with http://fakedomain.com:8080
I had the same problem and it is resolved now.

Google App Engine: 404 Not Found with Custom Domain

I setup a Flask app on Google App Engine as a Flex project.
When I browse to https://{project-id}.appspot.com everything is working fine and I can use the app without a problem. Why am I getting a 404?
I setup a custom domain as host.mydomain.io
gcloud beta app domain-mappings list
ID SSL_CERTIFICATE_ID SSL_MANAGEMENT_TYPE
host.mydomain.io 5270000 AUTOMATIC
Then I setup my dns to point to ghs.googlehosted.com
nslookup host.mydomain.io
Non-authoritative answer:
host.mydomain.io canonical name = ghs.googlehosted.com.
Name: ghs.googlehosted.com
Address: 172.217.0.115
However I always get a 404 and here are the logs
gcloud app logs tail -s default
2018-01-25 03:06:32 default[20180124t211951] "GET /" 404
2018-01-25 03:06:36 default[20180124t211951] "GET /" 404
Yet when I browse using the https://{project-id}.appspot.com address it works fine
2018-01-25 02:31:55 default[20180124t211951] "GET /" 200
app.yaml
entrypoint: 'gunicorn manage:app -w 4 -b :$PORT'
env: flex
runtime: python
env_variables:
FLASK_CONFIG: "production"
I found the problem was coming from my Flask configuration and not from Google App Engine
In my Production configuration I had this:
SERVER_NAME = "{project-id}.appspot.com"
This was causing Flask to return the 404 , not App Engine.
Changing it to
SERVER_NAME = "hostname.mydomain.io"
Fixed it for me.

_ah/ URLs being passed into app via app.yaml

I've installed a CakePHP application onto App Engine, and I'm redirecting URLs into it using a wildcard URL in my app.yaml:
url: /.*
script: app/webroot/index.php
The documentation states that /_ah/* URLs will be ignored (I don't know what these are for yet), but they are being caught by my CakePHP app and throwing errors into the error log. I also suspect this is the cause of 500 errors with an appengine error of 204 that keep happening randomly.
Does anyone have a solution for this? How do I ensure that the /_ah/ urls pass through to the app engine and not my specific application code?
Example error:
E 08:51:48.957 2015-03-17 404 841 B 304ms /_ah/start
0.1.0.3 - - [17/Mar/2015:01:51:48 -0700] "GET /_ah/start HTTP/1.1" 404 841 - - "****.appspot.com" ms=304 cpu_ms=416 cpm_usd=0.000094 loading_request=1 instance=0 app_engine_release=1.9.18
E 08:51:48.854 error: [MissingControllerException] Controller class AhController could not be found.
MissingControllerException is thrown by my app.
Request to /_ah/start is an initial request from Appengine itself, to initialize your app. I think you can ignore it, if you don't need to do anything special. Or return empty response.
See docs: https://cloud.google.com/appengine/docs/php/modules/#PHP_Instance_states

App Engine Backends and Taskqueue URL login Error

I'm getting this error from a request called from the task queue. It suggests I need to change the app.yaml handler but I think I have the correct handler
Here is the error log entry:
2011-11-17 13:30:35.849 /tasks/kacher 302 209ms 0kb
0.1.0.1 - - [17/Nov/2011:13:30:35 -0800] "GET /tasks/kacher HTTP/1.1" 302 0 - - "rawload.XXX.appspot.com" ms=209 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.000032 queue_name=default task_name=cf2e2f1d39d108b3972a1da8c6532fea
W2011-11-17 13:30:35.842
Request failed because URL requires user login. For requests invoked within App Engine (offline requests like Task Queue, or webhooks like XMPP and Incoming Mail), the URL must require admin login (or no login).
This is the code to call the task:
taskqueue.add(url='/tasks/kacher',target='rawload',method='GET')
Here is my app.yaml, with the task urls as login:admin which seems correct (to me):
- url: /tasks.*
script: main.py
login: admin
- url: .*
script: main.py
login: required
secure: always
There's a known bug in the dev_appserver with tasks that require admin login sometimes failing like this. Try logging your browser session in as an admin before accessing the URL that enqueues the task, or try uploading your app to production to see if you experience the issue there.

Resources