Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8200107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:19:22+00:00 2026-06-07T06:19:22+00:00

It seems illogical that this statement could throw a 404 error. Any ideas? users.create_logout_url(self.request.uri)

  • 0

It seems illogical that this statement could throw a 404 error. Any ideas?

users.create_logout_url(self.request.uri)



INFO     2012-06-30 16:20:47,374 dev_appserver.py:2952] "GET /('/_ah/login?continue=http%3A//localhost%3A8082/%3FID%3DtestBSchott&action=Logout',) HTTP/1.1" 404 -

New info follows.

key = db.Key.from_path("PQ", ID_id)
person = PQ.get(key)
if person: #person's ID DOES exist already
    if user and user == person.user: #user is owner and may revise the existing page
        choices = ' '.join(person.choices)
        url = users.create_logout_url(self.request.uri),
        template_values = {'ID_id':person.key(),
                'p': person,
                'choices': choices,
                'url': url 
                }
        logging.info("7 url %s" % url )
        logging.info("7 template_values %s" % template_values )
        path = os.path.join(TEMPLATE_DIR, 'add_person.html')
        self.response.out.write(template.render(path, template_values))

I have not shown all the variable in the template_values above; just the key ones. But from the log below, you can see that the value of url has changed within the template_values to be the nasty tuple you diagnosed. The question for me is why and what can I do?

INFO     2012-06-30 19:10:38,479 views.py:209] 7 url /_ah/login?continue=http%3A//localhost%3A8082/%3FID%3DtestBSchott&action=Logout
INFO     2012-06-30 19:10:38,479 views.py:210] 7 template_values {'month': 9, 'year': 2012, 'years': [2012, 2013, 2014], 'day': 3, 'url': ('/_ah/login?continue=http%3A//localhost%3A8082/%3FID%3DtestBSchott&action=Logout',), 'months': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'ID_id': datastore_types.Key.from_path(u'PQ', u'testBSchott', _app=u'dev~youpoll'), 'days': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], 'choices': u'Less Same More', 'p': <models.PQ object at 0x10bd6bf10>, 'nowyear': (2012,)}
INFO     2012-06-30 19:10:38,479 views.py:212] 6 path /Users/brian/googleapps/YouPoll/templates/add_person.html
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:19:25+00:00Added an answer on June 7, 2026 at 6:19 am

    Thanks for the logs. The URL being fetched is incorrect:

    /('/_ah/login?continue=http%3A//localhost%3A8082/%3FID%3DtestBSchott&action=Logout',)
    

    This is a “/” followed by a python tuple with one item, which is the correct URL. What are you doing with the result of the create_logout_url call? Try logging the result of the call directly; if it’s a tuple, that’s a bug in app engine, but my guess is that you’re somehow putting it in to a tuple later by accident.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that this question seems illogical, but I have to try, and I
Seems that This will be an easy question for you but this problem is
Seems like this is the kind of thing that would have already been answered
I have no idea why, and this seems illogical, but for some reason the
Seems to be a problem that many people have, but all the answers I
Seems like there should be... Right now it just seems like magic that you
Seems like cuke doesn't show the full error message (at least when problem occurs
Seems that web.xml for a servlet has an element called <enabled>false</enabled> that can be
Seems like this should be simple enough but for whatever reason I am unable
Seems like the problem with this is the PHP syntax, but no luck in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.