Some additional discoveries.
If I set_trace() in my "view" method and step through the code. The
recursion seems to launch when executing this line:
https://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/tools/devappserver2/python/request_handler.py#158
On Thursday, March 10, 2016 at 11:00:59 PM UTC-6, Danny Tran wrote:
>
> Hi Nick,
>
> Sure.
>
> I've been able to reproduce the issue using a very dumbed-down view.
>
> *app.yaml*
> ...
> - url: /.*
> script: myapp.wsgi.application
> secure: always
> ...
>
>
> *wsgi.py*
> import os
> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myapp.settings")
>
>
> from django.core.wsgi import get_wsgi_application
> application = get_wsgi_application()
>
> *settings.py*
> import os
> BASE_DIR = os.path.dirname(os.path.dirname(__file__))
> VERSION = '0.1.2'
> SECRET_KEY = 'REMOVED'
> URLFETCH_TIMEOUT = 60
> URLFETCH_VALIDATE_CERTS = True
> GAE_NAMESPACE = 'dev'
> GAE_SERVICE_ACCOUNT = {
> 'valid_app_ids': ['REMOVED'],
> }
> ROOT_URLCONF = 'myapp.urls'
> DEBUG = True
>
> *appengine_config.py*
> from google.appengine.api import urlfetch
> from google.appengine.ext import vendor
> vendor.add('lib') # oauth2client lib is installed here
>
> from google.appengine.ext.remote_api import remote_api_stub
> remote_api_stub.ConfigureRemoteApiForOAuth('myapp.appspot.com',
> '/_ah/remote_api')
>
> from django.conf import settings
>
> *urls.py*
> from django.conf.urls import patterns, include, url
> from django.shortcuts import render
> from django.http import HttpResponse
>
> def foo(request):
> return HttpResponse("foo", content_type='text/plain')
>
>
> urlpatterns = patterns('',
> url(r'^v1/foo$', foo)
> )
>
>
> Let me know if you are able to reproduce.
>
> On Thursday, March 10, 2016 at 6:05:13 PM UTC-6, Nick (Cloud Platform
> Support) wrote:
>>
>> Hey Danny,
>>
>> I can't say that I'm 100% sure what's happening to cause this behaviour.
>> Could you share some more logs, config files, and code? If possible, I'd
>> like to try to observe this on my own system. If it represents an issue in
>> the SDK or platform, rather than a user misconfiguration, this would be
>> necessary to get it fixed, and in the event that it's a user error, I'd
>> like to help discover the proper means of getting access to remote
>> Datastore via remote API from the development machine.
>>
>> Best wishes,
>>
>> Nick
>> Cloud Platform Community Support
>>
>> On Thursday, March 10, 2016 at 11:32:32 AM UTC-5, Danny Tran wrote:
>>>
>>> I'm attempting to make my appengine application running locally use a
>>> remote datastore.
>>>
>>> In appengine_config.py I'm adding the following lines.
>>>
>>> from google.appengine.ext.remote_api import remote_api_stub
>>> remote_api_stub.ConfigureRemoteApiForOAuth('MyApp.appspot.com','/_ah/remote_api')
>>>
>>> # name removed
>>>
>>> Per the instructions here:
>>> https://cloud.google.com/appengine/docs/python/tools/remoteapi
>>>
>>> However, when I try to send a basic HTTP request to my local app, it
>>> results in an infinite recursion loop between a url fetcher and a logger.
>>>
>>> Am I missing something?
>>>
>>>
--
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/09f3f6e4-7a51-4b22-876d-98e8b22d3a9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.