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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:17:33+00:00 2026-05-20T11:17:33+00:00

i have a problem with the jquery getjson. This code works $.getJSON(‘http://twitter.com/status/user_timeline/USERNAME.json?count=10&callback=?’, function(twitter_data) {

  • 0

i have a problem with the jquery getjson.

This code works

$.getJSON('http://twitter.com/status/user_timeline/USERNAME.json?count=10&callback=?', function(twitter_data)
{
    alert('works');          
});  

and this code not?

$.getJSON('https://api.twitter.com/1/account/verify_credentials.json?callback=?', function(twitter_data)
{
   alert('no alert ?');
}); 

But why? Any ideas?

example – > http://jsfiddle.net/4wWJW/2/

Thanks in advance!
Peter

  • 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-20T11:17:33+00:00Added an answer on May 20, 2026 at 11:17 am

    I’ve updated a version of your code here: http://jsfiddle.net/4wWJW/9/

    Unfortunately the example you give includes a oauth_nonce which I believe is a one-time authentication token. So unfortunately this won’t work. You’ll need to be authenticated with your account to debug.

    Instead of using jQuery.getJSON I’ve used the long-hand call to jQuery.ajax. This allows an error handler to be used. When the ajax call succeeds the success function is called, otherwise the error function is called.

    I can see in this case that the call is not successful, e.g. a status code of 200 is not returned, and therefore the error function is called.

    You could interrogate the jqXHR object and the other parameters to the error function to see what is happening.

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

Sidebar

Related Questions

I have this code: $.getJSON('http://www.reapp.se/cmesapp/cmes.json?callback=?', function(data){ alert(disco); }).error(function() {alert(fail!;}); Which is sending out an
I have a little problem with Jquery getJSON function. my json here { entries:
I have the code with jquery like this and it works but there is
I have external json URL. http://kun6858.iptime.org:8080/apps/list/?app_mb_no=9 And I access this json with jquery $.getJSON(..)
I have a problem with Jquery function getJSON, the action url does not trigger
I have problem to add jQuery to some existing code, please help. We have
I have some problem with Jquery Autocomplete plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ ) I got it
I have a problem. I use this code: $( '#wall_msg').clone( true ).insertAfter( '#wall_msg' );
I have this JSON code: { phrases: [ { phrases: [ { id: 33,
Well I have a problem reading the JSON data in jQuery, which is outputted

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.