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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:38:07+00:00 2026-06-15T06:38:07+00:00

When I print user_stream in the development environment, the full string gets printed. However

  • 0

When I print “user_stream” in the development environment, the full string gets printed. However when I view what gets printed in the console in the production environment, the full contents of “user_stream” is not printed, which I believe is leading to an error later on in additional code I have.

My question is: why aren’t all the contents of “user_stream” being printed in the console in the production environment and how do I fix this?

instance = UserSocialAuth.objects.get(user=request.user, provider='facebook')
token = instance.tokens
user_url = "https://graph.facebook.com/me/friends?access_token=" + token['access_token']

u = urllib.urlopen(user_url);
user_stream = json.loads(u.read())

print user_stream
  • 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-15T06:38:11+00:00Added an answer on June 15, 2026 at 6:38 am

    There is an error in your user_stream somehow. The best way to figure out what it is is to either print the string, or print the error message directly. These commands should help you figure out what is going on.

    print u.read()
    print user_stream['error']
    

    I strongly suspect that your access token isn’t valid somehow. Look into that as well. An example of what you might see from the Graph API Explorer is this:

    {
      "error": {
        "message": "Malformed access token AAACEdEose0cBAM0CipLFjIDZCysqmGyZCRJ6x4JsdSVkb177lM0UNMWqSYZA9BmBY0h3PbUiIJppQCbDZD",
        "type": "OAuthException",
        "code": 190
      }
    

    Read the message there carefully, and see if you can figure out how to correct it. Also, try printing our your full URL and running it in the Graph API Explorer.

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

Sidebar

Related Questions

I'm a newby to rails and love the language and the development environment. However,
import socket, sys, string if len(sys.argv) !=4 : print Usage: ./supabot.py <host> <port> <channel>
Is there any way that we can print the user name of the person
I'm wondering why this code section prints out the following: print request.user.has_perm('bug_tracking.is_developer'): + str(request.user.has_perm('bug_tracking.is_developer'))
I've got an app that uses MapView and I print out the user's latitude,
I can print out a date nicely based on the user's locale. But how
Im trying to print the realtime output based on user input for a search.
I have a javascript backed 'print' button on my webpage where the user can
How do I get and print a char from a user? This want do
I want to detect when a user is missing a required module and print

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.