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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:58:15+00:00 2026-05-27T02:58:15+00:00

I have a couple of app engine urls that return pure JSON and this

  • 0

I have a couple of app engine urls that return pure JSON and this works fine in production. However, when I run the app locally (dev_appserver.py), it spits out a few additional lines in the response before the actual json string, like so:

Status: 200
content-type: application/json; charset=utf-8
Cache-Control: no-cache
Content-Length: 103480

[{"json":"here"}]

The lines before the actual json cause my javascript client to choke, is there a way to prevent the dev_appserver from including those lines?

edit: as requested, here’s the handler:

class GetEvents(webapp2.RequestHandler):
    """
    returns json object with events for a given date (yyyy-mm-dd format)
    """
    def get(self):
        start_date = self.request.get("start") 
        use_cache = self.request.get("use_cache")
        # check if we have this date in cache
        output = memcache.get(start_date)
        if output == None or use_cache == "no": 
            # query datastore
            # make dictionary
            # store in cache 
        self.response.headers['Content-Type'] = "application/json"
        return self.response.out.write(output)

Cheers,

the hoff

  • 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-27T02:58:15+00:00Added an answer on May 27, 2026 at 2:58 am

    ok, figure it out:
    somewhere in the handler, I had a print statement, which seems to cause these extra lines to show up. Leaving this is here reference.

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

Sidebar

Related Questions

I have an app that works fine. I'm trying to make one of the
This is my first winform app in .NET... I have made a couple of
I have a problem with the Google App Engine JDO implementation that I cannot
I have a couple of nagging compiler warnings for an app that I ported
I have a couple activities in my app that I would like to utilize
I am working on an Android app and have a couple strings that I
I have a couple of models in a Rails app. Let's say it's Products
I have a couple of html forms inside of an Android app. To hide
I have recently been rewriting some of my iphone app because a couple of
For the last couple months i have ben having some issues with my app.config

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.