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 521265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:13:56+00:00 2026-05-13T08:13:56+00:00

application = webapp.WSGIApplication( [(r’/main/profile/([a-f0-9]{40})’, ProfileHandler)], debug=True) The regex in the above parameter will not

  • 0
application = webapp.WSGIApplication(
    [(r'/main/profile/([a-f0-9]{40})', ProfileHandler)],
    debug=True)

The regex in the above parameter will not recognize a 40 hex long hexdigest in Google App Engine.

I’m getting 404s instead of ProfileHandler being passed the matching 40 hex long profile ID. My app.yaml passes everything /main/.* to the correct python script so that’s not the issue. The regex looks sane and resembles the example regex in GAE docs. What is wrong with this regex?

  • 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-05-13T08:13:57+00:00Added an answer on May 13, 2026 at 8:13 am

    I can not reproduce your problem. Here is an exact code I have:

    index.py

    from google.appengine.ext import webapp
    from google.appengine.ext.webapp.util import run_wsgi_app
    
    class ProfileHandler(webapp.RequestHandler): 
        def get(self, *ar, **kw):
            self.response.out.write("PROFILE IS:" + ar[0])
    
    run_wsgi_app(webapp.WSGIApplication(
    [(r'/main/profile/([a-f0-9]{40})', ProfileHandler),],
                                     debug=True))
    

    app.yaml

    application: someapp
    version: 1
    runtime: python
    api_version: 1
    
    handlers:
    - url: /main/.*
      script: index.py
    

    Application is listening on port 8082

    GET: http://localhost:8082/main/profile/4c4f630aef49c0065c22eb3dd35a00f5787f4816
    RESPONSE: PROFILE IS:4c4f630aef49c0065c22eb3dd35a00f5787f4816
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app class MainPage(webapp.RequestHandler):
I'm using App Engine python to host an application and would love to use
Currently I have foo.com/bar routing to a request handler Main. I also want foo.com/bar/id
Currently I have foo.com/bar routing to a request handler Main. I also want foo.com/bar/id
I am reading the tutorial about Receiving Mail . I updated the app.yaml file
I am learning Google App Engine in Python. Here is my problem: I want
I'm working on a Google appengine project and I've encountered a quandary. The following
So I have beating my head against the wall on this. I feel like
<< Big update below implies it's simply a logging issue >> I'm trying to
On one of my machines I have the error when I am working with

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.