Re: [google-appengine] UserService isLoggedIn always returns false when using LocalUserServiceTestConfig in JUnit test
On Thu, May 15, 2014 at 5:41 AM, Patrik M patrik.x.malmb...@gmail.com wrote: and in setup userHelper.setEnvAttributes(envAttr).setEnvAuthDomain(example.com). setEnvEmail(t...@example.com).setEnvIsAdmin(false).setEnvIsLoggedIn(true ); UserService userService = UserServiceFactory.getUserService(); userService.isUserLoggedIn() This always returns false when running JUnit-test Does the Users service correctly provide other detail about the test user? For instance, if you call *.getCurrentUser().getEmail()* do you get back *t...@example.com t...@example.com*? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Editing app.yaml file
On Sun, May 11, 2014 at 5:15 AM, sanchezrobertoje...@gmail.com wrote: Hi I just joined the group. How do I Edit my app.yaml file. The app.yaml file is a plain text document. You can edit it with your system's default text editor: Notepad, TextEdit, etc. - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Connect to GMail using JavaMail
On Fri, May 16, 2014 at 5:49 AM, di...@nubbius.com wrote: For another hand, there're clients who use OAuth 2.0 3-legged (normal identification). I can't connect with them to GMail. Are all client accounts failing the 3-legged OAuth, or are there some accounts that work properly and some that do not? Can you construct a simple test case that fails for you, yet you expect it to work? Finally, what scope did you request when collecting the access token? On Fri, May 16, 2014 at 5:49 AM, di...@nubbius.com wrote: Well, I don't know what happens but it has to be because of OAuth 2.0 because I have tried to connect to GMail without OAuth 2.0 (using email and password) and it works fine. Did you try using username/password with the same accounts that are failing the 3-legged OAuth login? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] error appcfg
On Wed, May 14, 2014 at 12:59 AM, Iñigo B inigoar...@gmail.com wrote: Hello, I recieved this message error trying to deploy my App: A version or backend parameter is required. --- end server output --- 2014-05-14 07:19:25 (Process exited with code 1) You can close this window now. Anyone knows how to resolve it? Are you using Modules in your application? Can you post the contents of your *app.yaml* file? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] 500 Error occurring inconsistently
On Mon, May 12, 2014 at 10:42 PM, Simply Crow simplycrow@gmail.com wrote: My app keeps generating this error once in a while A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. The error shows up off and on for exactly the same request. The unrepeatability of the error makes it very hard to debug. Can someone please help? After the error text, do you see another error code (other than the 500 error)? For instance, do you see a 202 error code as in this picture: http://imgur.com/KPeTUj5 ? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] bot attack
On Thu, May 15, 2014 at 8:55 AM, dimitriosd1983 dimitriosd1...@gmail.com wrote: I have an application that only runs cron jobs and uses a backend, so there are no incoming requests from any client. I noticed that a request from a user named 'niki-bot' was received and I'm quite surprised as my app url does not appear anywhere it's only used by admin account which sends cron requests. Fortunately I had setup security on my crons so this user got a 403 forbidden message, but I'm still wondering how could this happen. When you say the user was named *niki-bot*, was that in the User Agent header of the request, or the name of the logged-in account from using the Users API? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] No Default version for my app..!!
On Mon, May 12, 2014 at 6:47 AM, Malleswari Srinivasarao malleswari.srinivasa...@a-cti.com wrote: Is it possible to have an app engine application with no default version at all.. I was wondered by seeing the no default version in all my versions of my app.. I have so many versions but, I could not see even one out of them was default. but, I could see one version is handling all the requests by default. You should be able to see which version is configured as default by going to the Logs Viewer and looking at the drop down box in the upper portion of the page. The version marked as default will have a *(Default)* note next to it. - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Twitter API For Google App Engine
On Tue, May 13, 2014 at 7:20 AM, Touqeer Shafi touqeer.sh...@gmail.com wrote: I am making twitter bot on google app engine. i am facing problem while posting to twitter api. using file_get_content functions. I am using this function because CURL is not enable on GoogleAppEngine can any body guide me thorugh this how to get this running using the file_get_content As Chad said, you can use the URLFetch API to interact with external services. However, since you're asking for a guide, it may be better to use a library or other abstraction: https://dev.twitter.com/docs/twitter-libraries What problems/errors are you getting when using *file_get_contents*? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Error 414 when logging in with multiple accounts
On Thu, May 15, 2014 at 6:06 PM, synth3tk music4da...@gmail.com wrote: The problem seems to be that if a user has more than a certain number of Google / GApps accounts logged in simultaneously (I can successfully reproduce it once I hit 5 accounts), they get an Error 414 from Google My brief search on the error states that the URL is too long, since it's a GET request. Just about all of the advice states to use POST instead. The problem is, we're using Google's built-in create_login_urlmethod, It's a known issue with the Users API, it's been talked about on this forum before. The only workaround is to advise your users to log into fewer than 5 accounts at a time, or skip the Users API and use the Sign In With Google+ API: https://developers.google.com/+/features/sign-in - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Re: Interesting error when downloading application data
On Wed, May 14, 2014 at 12:05 PM, nalini mirajkar mirajkarnal...@gmail.com wrote: How to open the output.data file? I am assuming all the data from course (course and student data) will be in the .data file. pls provide examples to open this file. The downloaded data is formatted as a CSV file, which can be opened by any spreadsheet application. Make sure to put the correct *.csv* file extension as well: https://developers.google.com/appengine/docs/python/tools/uploadingdata#Python_Downloading_data_from_App_Engine - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Stange log (twice start with two successive requests)
On Sat, May 17, 2014 at 7:23 AM, Malleswari malleswari.srinivasa...@a-cti.com wrote: May I know the reason for running same process in multiple instances. I too faced this in my application, but it was not happened at the time of loading the application instead, it happened while task queue was serving one request. The same request handled twice with different instances at approximately same time (milliseconds difference is there). The task which my task queue processing was, very sensitive information, because of this happened, it resulted me great loss as duplication happened. Kindly tell me what was the *reason *to run the same request with two different instances and *how to avoid* this. I can say, it was not happening all the time, but when it happens, so much duplication of data occurred in my case. It's always possible for a single task to run twice, so you need to write your code to avoid any data loss/corruption if that occurs. See https://developers.google.com/appengine/docs/python/taskqueue/overview-pushand scroll down to where it says: *When implementing the code for tasks... it is important to consider whether the task is idempotent. App Engine's Task Queue API is designed to only invoke a given task once; however, it is possible in exceptional circumstances that a task may execute multiple times (such as in the unlikely case of major system failure)*. However, it's worth verifying whether or not it was actually the same task. Can you pull out the headers for both requests and look for *X-AppEngine-TaskName* and *X-AppEngine-TaskRetryCount* headers? Do the headers contain the same values? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] An internal error occurred during: Deploying Overseer to Google.
On Tue, May 13, 2014 at 12:26 PM, Zig-Admin toni.kalajai...@gmail.com wrote: I was able to circumvent the problem by commenting this line. query = query.filter(value, userScore.value); datastore-indexes.xml has unescaped '' and '' ?? Can you try inserting a space between *value* and **? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] How much do I pay to extend the datastore read operations?
On Fri, May 16, 2014 at 12:24 PM, aramesh...@mysummitps.org wrote: I have an app engine app that is running on a free quota. The datastore queries have been exceeded and I want to pay to extend it. How do I know the price to pay to extend Datastore Read operations? On the left hand navigation bar, there's a button marked Billing Status: http://imgur.com/oCk5AcU Click it, then on the following page click on the Google Cloud Console link (in the blue background box): http://imgur.com/KlWZ2r4 From there you can enable and modify your billing options. - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Issue with Cloud App Engine, Jersey REST framework and Cloud SQL
On Thu, May 15, 2014 at 12:10 PM, ajoy sinha ajoysinha...@gmail.com wrote: I have billing enabled for this GAE project. I have already 3 USD billed on it. I will not be able to use Cloud SQL qithout billing activated. I have found I need to do a shoutdown of instance at console.developers.google.com/project/apps~cwdataproject/… https://console.developers.google.com/project/apps~cwdataproject/appengine/instances and then on the very next request it is restarting the instance and send the proper response back. But if i kept idle for one hour without any request. then from then onwards I am not getting any response back. again I have to restart the instance to get the response back. And these behaviour is observing for those seervices which are intaresting with cloud sql database. there are two services which are not interesting with database, those are working always It sounds like your instances aren't getting responses back from Cloud SQL fast enough. What I'd do is schedule a cron to repeatedly access the Cloud SQL instance, thereby keeping it warm for other requests. Then you can retry your application's usual requests. To save money, you can shut off the cron schedules after your work session. - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Adwords API Python library does not compatible with App Engine
On Tue, May 13, 2014 at 3:09 AM, István Maczkó maczko.ist...@gmail.com wrote: got a answer on Adwords API Forum from the API team ( https://groups.google.com/forum/#!searchin/adwords-api/migrating$20appengine/adwords-api/vRlFWKcZhv4/Bhy5azEPWUMJ ): The Python libraries are not currently compatible with AppEngine. We're aware of this and are working on it, but I don't have a specific date for when AppEngine support will be available. Our company is a advertisin agency, our customer use Adwords so we use it, manage their account. I write on this forum as App Engine could lose us as customer, so you will have less revenue not Adwords team. Can you make a followup request to the AdWords team asking if the whole library is incompatible, or just certain parts of it? If it's parts of the library that are incompatible, it may be possible to band-aid some fixes. - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Unable to change socket read timeout in SDK
On Tue, May 13, 2014 at 7:31 PM, Charles Pritchard downch...@gmail.com wrote: The idea here is to go ahead and listen on an http socket for a little while, for some data. HttpURLConnection only works for a single data packet, for getInputStream, and Socket will only wait up to 5 seconds to receive data, otherwise it throws an API error. Does this API endpoint you're connecting to have heartbeat functionality? Can you connect to it via a non-HTTP port (not 80 or 443)? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Endpoints java 404 unsupportedProtocol
On Mon, May 12, 2014 at 3:32 PM, Alberto Giantin albertogian...@gmail.com wrote: Hi all, I've developed a web application using maven and appengine. I have some problems with cloud endpoints, everything works fine in my local machine but when I deploy to appengine I've a strange response calling endpoints. Response domain: global, reason: unsupportedProtocol, message: If you look at the source code for Endpoints, the *reason: unsupportedProtocol*https://chromium.googlesource.com/external/googleappengine/python/+/b90ec6c60be569887e4905737fc5b2fedd9fe336/google/appengine/tools/devappserver2/endpoints/generated_error_info.py explanation maps to HTTP codes 402, 406, 407, 411, 414, 415, 416, or 417. Those HTTP error codes map to the following: 406: Not Acceptable 407: Proxy Authentication 411: Length Required 414: Request URI Too Long 415: Unsupported Media Type 416: Requested Range Not Satisfiable 417: Expectation Failed So there could be several issues at play here. How long is the request URI being sent to Endpoints? Are any other headers being sent by the GET request? Also, can you supply the source code for *it.giant.soccerregistration.entities.Match*? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Re: Adding search documents in a transaction
Thanks :) Den lördagen den 10:e maj 2014 kl. 07:40:45 UTC+2 skrev Vinny P: On Wed, May 7, 2014 at 6:30 AM, yngling ayng...@gmail.com javascript: wrote: Bump :) 2014 18:43:55 UTC+2 yngling: I want to add an entity to the datastore, and at the same time add a search document (the document is just a geolocation and a timestamp, with an id to locate the real entity). If the transaction fails and the entity is not added to the datastore, I naturally do not want the search document to be added either. Is there transactional support for adding search documents? I don't believe Search supports transactions at this time. At a Google I/O a few years ago, there was some discussion of transactions support (maybe someone can find the video on YouTube) but I haven't heard anything about it recently. Perhaps the best you can do is add a datastore hook to add the search document after the entity is added: https://developers.google.com/appengine/docs/python/ndb/entities#hooks - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: UserService isLoggedIn always returns false when using LocalUserServiceTestConfig in JUnit test
Perhaps try using the same approach as we use in in TCK: * https://github.com/GoogleCloudPlatform/appengine-tck/blob/master/tests/appengine-tck-users/src/test/java/com/google/appengine/tck/users/UserTest.java#L46 On Thursday, May 15, 2014 12:41:02 PM UTC+2, Patrik M wrote: UserService isLoggedIn always returns false when using LocalUserServiceTestConfig, even if I set it to true using setEnvIsLoggedIn(true). Declaration private LocalServiceTestHelper userHelper = new LocalServiceTestHelper(new LocalUserServiceTestConfig()); and in setup HashMapString, Object envAttr = new HashMapString, Object(); envAttr.put(com.google.appengine.api.users.UserService.user_id_key, 1 ); userHelper.setEnvAttributes(envAttr).setEnvAuthDomain(example.com). setEnvEmail(te...@example.com javascript:).setEnvIsAdmin(false). setEnvIsLoggedIn(true); UserService userService = UserServiceFactory.getUserService(); userService.isUserLoggedIn() This always returns false when running JUnit-test -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: Adwords API Python library does not compatible with App Engine
Hi István I am curious what sort of errors are you getting from the api or in what way it is not compatible with appengine ? Can you elaborate ? Cheers Tim On Tuesday, May 13, 2014 4:09:34 PM UTC+8, István Maczkó wrote: Hi This is a Complaint (bitter one). We have devoted ourself to App Engine development, started to develop for Adwords API, with Adwords API Python library. The last version (v201402) python libraries are not compatible with App Engine. No warning, no announcement, just simply does not work. Wo got a useless answer on Adwords API Forum from the API team ( https://groups.google.com/forum/#!searchin/adwords-api/migrating$20appengine/adwords-api/vRlFWKcZhv4/Bhy5azEPWUMJ ): The Python libraries are not currently compatible with AppEngine. We're aware of this and are working on it, but I don't have a specific date for when AppEngine support will be available. Our company is a advertisin agency, our customer use Adwords so we use it, manage their account. I write on this forum as App Engine could lose us as customer, so you will have less revenue not Adwords team. I expected more care and more harmonization from Google. Regards, István -- 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. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.