I am still using OAuth ID in web app, the python code that I am using to
get the data from Google Spreadsheet. API Key was something that I used in
my android app, to just try out if it does any change, and that didnt.
And here is the Logs
00:12:15.755GET500264 B229 msChrome 51/api/menu
59.153.101.143 - - [19/Jul/2016:00:27:15 +0600] "GET /api/menu HTTP/1.1" 500
264 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
"gowcanteen.appspot.com" ms=229 cpu_ms=9 cpm_usd=7.9236e-8 loading_request=0
instance=00c61b117c5074171089efe691fd68d35c03ec166588034655bca1bfd8a004a271
app_engine_release=1.9.40 trace_id=c96131dd18bfefe2658ed7980e9c28e9
{
metadata: {…}
protoPayload: {…}
insertId: "2016-07-18|11:27:19.295269-07|10.106.46.132|-1425448532"
log: "appengine.googleapis.com/request_log"
httpRequest: {…}
operation: {…}
}
00:12:15.964
Exception on /api/menu [GET]
Traceback (most recent call last):
File
"/base/data/home/apps/s~gowcanteen/1.394294787305794312/lib/flask/app.py",
line 1817
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Flib%2Fflask%2Fapp.py&line=1817&project=gowcanteen>
, in wsgi_app
response = self.full_dispatch_request()
File
"/base/data/home/apps/s~gowcanteen/1.394294787305794312/lib/flask/app.py",
line 1477
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Flib%2Fflask%2Fapp.py&line=1477&project=gowcanteen>
, in full_dispatch_request
rv = self.handle_user_exception(e)
File
"/base/data/home/apps/s~gowcanteen/1.394294787305794312/lib/flask/app.py",
line 1381
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Flib%2Fflask%2Fapp.py&line=1381&project=gowcanteen>
, in handle_user_exception
reraise(exc_type, exc_value, tb)
File
"/base/data/home/apps/s~gowcanteen/1.394294787305794312/lib/flask/app.py",
line 1475
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Flib%2Fflask%2Fapp.py&line=1475&project=gowcanteen>
, in full_dispatch_request
rv = self.dispatch_request()
File
"/base/data/home/apps/s~gowcanteen/1.394294787305794312/lib/flask/app.py",
line 1461
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Flib%2Fflask%2Fapp.py&line=1461&project=gowcanteen>
, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/base/data/home/apps/s~gowcanteen/1.394294787305794312/main.py",
line 59
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Fmain.py&line=59&project=gowcanteen>
, in API_MENU
return str(db.getMenuItems())
File "/base/data/home/apps/s~gowcanteen/1.394294787305794312/server.py",
line 24
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Fserver.py&line=24&project=gowcanteen>
, in getMenuItems
return self.menuSheet.get_all_values()
File
"/base/data/home/apps/s~gowcanteen/1.394294787305794312/lib/gspread/models.py"
, line 339
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Flib%2Fgspread%2Fmodels.py&line=339&project=gowcanteen>
, in get_all_values
cells = self._fetch_cells()
File
"/base/data/home/apps/s~gowcanteen/1.394294787305794312/lib/gspread/models.py"
, line 226
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Flib%2Fgspread%2Fmodels.py&line=226&project=gowcanteen>
, in _fetch_cells
feed = self.client.get_cells_feed(self)
File
"/base/data/home/apps/s~gowcanteen/1.394294787305794312/lib/gspread/client.py"
, line 250
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Flib%2Fgspread%2Fclient.py&line=250&project=gowcanteen>
, in get_cells_feed
r = self.session.get(url)
File
"/base/data/home/apps/s~gowcanteen/1.394294787305794312/lib/gspread/httpsession.py"
, line 79
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Flib%2Fgspread%2Fhttpsession.py&line=79&project=gowcanteen>
, in get
return self.request('GET', url, **kwargs)
File
"/base/data/home/apps/s~gowcanteen/1.394294787305794312/lib/gspread/httpsession.py"
, line 75
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1&file=%2Fbase%2Fdata%2Fhome%2Fapps%2Fs~gowcanteen%2F1.394294787305794312%2Flib%2Fgspread%2Fhttpsession.py&line=75&project=gowcanteen>
, in request
raise HTTPError("%s: %s" % (response.status, response.read()))
HTTPError: 401: <HTML>
<HEAD>
<TITLE>Unauthorized</TITLE>
</HEAD>
<H2>Error 401</H2>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000"><H1>Unauthorized</H1> </BODY>
</HTML>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/167ad9c0-ee9b-45cd-bfbb-88d5e4a7a2ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.