Error requesting in javascript

0

I'm trying to make a request in this format

 $.get("http://meuurl.com/webservice", function (data) {
        console.log(data);
    }).fail(function (data) {
        console.log(data);
    });

But I get this error

  

Failed to load resource: the server responded with a status of 500   (Internal Server Error)

    
asked by anonymous 27.06.2016 / 20:26

1 answer

1

Your request is successfully exiting your browser. However, some server-side error is occurring. Typically, error 500 is a simple NullPointerException .

If you can not identify the error on the server, you can edit your question by adding the server-side code and the error log. So we can help you more effectively.

Any questions are available.

    
27.06.2016 / 20:34