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

  • SEARCH
  • Home
  • 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 7413213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:39:41+00:00 2026-05-29T06:39:41+00:00

Are there ways to test my error_handlers setup in the app.yaml file, especially the

  • 0

Are there ways to test my error_handlers setup in the app.yaml file, especially the error code over_quota?

  • 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-29T06:39:42+00:00Added an answer on May 29, 2026 at 6:39 am

    Testing error_handlers

    dev_appserver.py is the application that is parsing your app.yaml and serving these error files. This means that you’re best bet is probably a straight up acceptance test where you bring up dev_appserver.py and try hitting it localhost:8080 with GETs and PUTs that would trigger the various errors you’re expecting.

    So, if /foo returns a 404, you could do the following with Python requests:

    >>> def test_foo():
    >>>   response = requests.get('/foo')
    >>>   assert response.status_code == 404
    

    Testing Over Quota Error

    In this specific case it sounds like you’re trying to explicitly raise the over_quota error. This link mentions that the exception you’re looking for is apiproxy_errors.OverQuotaError.

    I’m not sure what your test code is, but have you tried explicitly raising this error, with straight up raise?

    I was able to run the following code after bootstrapping my apiproxy_stub_map, setting up my path, etc.:

    from google.appengine.runtime import apiproxy_errors
    
    def test_foo():
      raise apiproxy_errors.OverQuotaError
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any ways to create my own audio file format? I'm planning to
Is there any ways to do strings concatination in a `build.xml file? Concretely, suppose
Is there any ways to delete the rows inserted by a test case in
So I have the following code: File txtFileDir = new File(MAIN_DIR + test); FilenameFilter
What ways there are for doing a one way XML serialization in .Net? XmlSerializer
Are there any ways to determine what the differences in databases are that affect
Is there any ways to try to guess encryption algorithm used to encrypt the
Are there any ways to make javac use an existing OSGi-environment for the resolution
Is there a ways to transform text that is in a specific column of
Are there any ways to mock a WCF client proxy using Rhino mocks framework

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.