google app engine - X-Appengine-Inbound-Appid header not set -
google app engine - X-Appengine-Inbound-Appid header not set -
i have 2 appengine modules, default module running python , "java" module running java. i'm accessing java module default module using urlfetch. according appengine docs (cloud.google.com/appengine/docs/java/appidentity), can verify in java module request originates module in same app checking x-appengine-inbound-appid header.
however, header not beingness set (in production deployment). utilize urlfetch in python module follows:
hostname = modules.get_hostname(module="java") hostname = hostname.replace('.', '-dot-', 2) url = "http://%s/%s" % (hostname, "_ah/api/...") result = urlfetch.fetch(url=url, follow_redirects=false, method=urlfetch.get)
note i'm using notation:
<version>-dot-<module>-dot-<app>.appspot.com
rather notation:
<version>.<module>.<app>.appspot.com
which reason results in 404 response.
in java module i'm running servlet filter looks @ request headers follows:
enumeration<string> headernames = httprequest.getheadernames(); while (headernames.hasmoreelements()) { string headername = headernames.nextelement(); string headervalue = httprequest.getheader(headername); mlog.info("header: " + headername + " = " + headervalue); }
appengine set headers, e.g. x-appengine-country. x-appengine-inbound-appid header not set.
why i'm not seeing documented behaviour? suggestions much appreciated.
have @ i've been answered on google groups, led issue opened on public issue tracker.
as suggested in reply received can follow, update, issue on there.
google-app-engine
Comments
Post a Comment