[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-24 Thread 'Adam (Cloud Platform Support)' via Google App Engine
No, the access token is not the service account key. You do not need to keep regenerating the service account key; if you did, it would effectively cause your app to break every few days until you created a new key and pushed a new version of your app. The access token refresh is generally hand

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-23 Thread Ridhwanul Haque
Looks like i still have the issue, so just confirmation @joshuamo and @Adam I wanna ask by access token you mean the service account key right? or do I have to create new Oauth2 client id (web client) as well. -- You received this message because you are subscribed to the Google Groups "Googl

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-22 Thread Ridhwanul Haque
Sorry, it seems I was using an older method, I have now used the method for oauth 2.0, lets see if it keeps it working. and i did recently (like 3 days ago, but in few hours got the error again) change my access token, but do I have to renew it every day? well i do hope changing to the correct m

Re: [google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-22 Thread 'Josh Moore' via Google App Engine
Also, if this happens "after a while", it's possible that the access token is expiring and needs to be refreshed for a new, valid access token. Access tokens expiration is variable, but is always "very quickly," so you should anticipate these failures and be able to refresh the access token as need

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-22 Thread 'Adam (Cloud Platform Support)' via Google App Engine
The error is pretty clear, you're getting 401 unauthorized from your web app. So either your credentials are not good, or the way you are authorizing is incorrect. Since you're using gspread (a third party library) you might want to revisit their documentati

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-18 Thread Ridhwanul Haque
I reposted the Exception part with a bit better presentation. -- 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 google-appengine+unsubscr...@googlegroups.com

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-18 Thread Ridhwanul Haque
Continuation 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

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-18 Thread Ridhwanul Haque
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

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-18 Thread Ridhwanul Haque
I am sorry i tried a few times but I am unable to present the last Exception part properly, so shared it the default way. -- 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, se

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-18 Thread Ridhwanul Haque
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

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-18 Thread Ridhwanul Haque
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

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-18 Thread Ridhwanul Haque
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

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-18 Thread Ridhwanul Haque
Thanks a lot for the reply. I am using OAuth in my python code ( on the web app ) to get data from Google Spreadsheet, API Key was something that I added to my android code just for a try, I checked the Logs but couldn't understand it properly so here its : 00:12:15.755GET500264 B229 msChrome

[google-appengine] Re: I am getting Internal Server Error 500, which fixes for a while if i deploy it again

2016-07-18 Thread 'Adam (Cloud Platform Support)' via Google App Engine
API Keys will not work with the Google Sheets API. You need to use OAuth , as you were doing originally. The reason you only see 500 Internal Server Errors client-side is because every time some exception occurs, you aren't handling it and