 <p>Like adeneo said: dataType: 'array' is invalid and probably jquery will trigger the .fail() instead of .done(). </p> <p><a href="https://api.jquery.com/deferred.fail/" rel="nofollow">https://api.jquery.com/deferred.fail/</a></p>