I am using WFS GetFeature request to GeoServer from OpenLayers application. And highlight different color that return features on map. This is working fine for 990 records. But not returning for 1800 record.

I am using AJAX request:

        var url = "http://localhost:8080/geoserver/cits/wms?"
            + "REQUEST=GetFeature&"
            + "SERVICE=WFS&"
            + "version=1.1.0&" 
            + "typename=pipes&" 
            + "outputFormat=text/javascript&"
            + "format_options=&" 
            + "callback: JSON_CALLBACK";

No error and no record. I thing it is timed out. How can I solve this issue?

  • you can help us by providing more information, what url is sent to the server, what does the response look like in the debugger, is there a log file entry on the server, what does your code look like?
    – Ian Turton
    Dec 11, 2014 at 10:12

2 Answers 2


Basic rule for OpenLayers and WFS is that do not test with OpenLayers. With a browser you can control what happens. Some first steps to take:


You have outputFormat=text/javascript& but you need to check what the actual mime type is for JSON according to the WFS GetCapabilites response of the server, in your case:


Probably you'll find it's application/json

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.