Home > Jquery Ajax > Ajax Error Status 200

Ajax Error Status 200


Thank you, Please mark as answer if you found this to be useful. Leave a comment on demersus's reply Identifier Re: jQuery calls error callback on successful ajax request (status 200) 3 years ago This bug still exists in jQuery 1.9.1. Solution: make sure that the server returns valid JSON. Why are some programming languages turing complete but lack some abilities of other languages? weblink

Thanks for this, I was having the 200 OK and parsererror, the data I was returning was html, so I just set dataType: 'html' and BAM! Reply mdc1 Member 10 Points 73 Posts Re: Simple Ajax returns 200 OK but fires error Oct 20, 2010 12:28 PM|mdc1|LINK Hi, Yes I already have that in my .cs file, Source (Stackoverflow) http://stackoverflow.com/questions/17575819/jquery-ajax-post-call-return-200-status-ok-but-error Comments Please enable JavaScript to view the comments powered by Disqus. × Email codedump link for Jquery AJAX POST call return 200 status OK but error Email Success 2xx These codes indicate success.

Ajax Call Always Returns Error

the ajax call was successful, but there was an error parsing the response.Look at it this way. For up-to-date details on the HTTP specification, see the latest HTTP/1.1 drafts Status codes The values of the numeric status code to HTTP requests are as follows. Partial Information 203 When received in the response to a GET command, this indicates that the returned metainformation is not a definitive set of the object from a server with a Top 10 Tutorials HTML Tutorial CSS Tutorial JavaScript Tutorial W3.CSS Tutorial Bootstrap Tutorial SQL Tutorial PHP Tutorial jQuery Tutorial Angular Tutorial XML Tutorial Top 10 References HTML Reference CSS Reference JavaScript

you can check whether a json is valid or not on jsonlint.com share|improve this answer edited Oct 27 '15 at 12:18 Mr_Green 18.3k2086152 answered May 31 '11 at 11:31 Salman A I managed to fix it by moving datatype above url like this: $.ajax({ type: 'GET', dataType: 'json', url: 'http://intern-dev01:50231/api/language', success: function() { console.log('It Works!'); }, error: function (request,status, error) { console.log(error); Convince family member not to share their password with me What is this cable hanging against the outer wall? Jquery Ajax Post Parsererror It is built on WordPress, hosted by Liquid Web, and the caches are served by CloudFlare CDN.

What does a publishing company make in profit? Jquery Ajax Status 200 But Not Success more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation HO related stuff 122 stuff Terms & services -Privacy -Rss Sign in -Sign up For programmers by programmers Tag v2.0.1 w3schools.com THE WORLD'S LARGEST WEB DEVELOPER SITE ☰ HTML CSS JAVASCRIPT https://www.mkyong.com/jquery/jquery-ajax-request-return-200-ok-but-error-event-is-fired/ I'll post the code here. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication6._Default" %>