Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Json call returns 200 ok and 408 both

    Hi,
    I am trying to retrieve a JSON object from the following URL
    http://server/version

    When i run the following script from firebug console
    >>> $.getJSON("/version",function(data){alert (data.version)});

    It makes a call and displays the correct version in the alert box , but it also throws a 408.

    This is the output in firebug console

    >>> $.getJSON("/version",function(data){alert (data.version)});
    GET https://serverurl/version 200 OK 157ms
    XMLHttpRequest { readyState=1, more...}
    "NetworkError: 408 Request Timeout - https://serverurl/version"


    Can someone please help.

    Thanks,
    M

  • #2
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, now its reacting differently.
    From the firebug console, I get only the 200 Ok message

    But when the same statemet is used from the js page , it throws the 408.

    Any ideaS?

  • #3
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,253
    Thanks
    12
    Thanked 341 Times in 337 Posts
    408 is a request timeout.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •