Error in data request to GeoServer: “Could not determine geoserver request from http request GET /geoserver/ows?service=WFS HTTP/1.1”

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in data request to GeoServer: “Could not determine geoserver request from http request GET /geoserver/ows?service=WFS HTTP/1.1”

Simon
I am using ExtJS ajax to send a data request to geoserver (which is in another domain different from web server), codes are as follows:

   

Ext.Ajax.request({ //send data request
                        url : '../proxy.py?url=' + dataUrl,
                        method : 'GET',
                        headers: {
                                'Content-Type': 'application/json'
                        },
                        success : function(response, opts) {
                                var eventData = Ext.decode(response.responseText); //decode into JSON
                               
                                //parse eventData
                        },
                        failure: function(response, opts){
                                Ext.Msg.alert("Failure", "Failed to retrieve event, please check service connection at " + dataUrl);
                        }
                });


since it relates to cross-domain issue, we employed a python proxy at web server, and put the GeoServer domain into the accessible list. If I put the server link url in browser and access it, I can get JSON response; however, by using ajax request, we got following error:

   

       

<ows:Exception exceptionCode="MissingParameterValue" locator="request"> 
    <ows:ExceptionText>Could not determine geoserver request from http request GET /geoserver/ows?service=WFS HTTP/1.1
        Accept-Encoding: identity
        Host: XXXX
        Connection: close
        User-Agent: Python-urllib/2.5
        </ows:ExceptionText> </ows:Exception> 


I searched, somebody said it's an issue related with proxy and the request headers. however, no detailed solution is found yet. I hope someone here can help me out.

thanks a lot!
Reply | Threaded
Open this post in threaded view
|

Re: Error in data request to GeoServer: “Could not determine geoserver request from http request GET /geoserver/ows?service=WFS HTTP/1.1”

Simon
found one solution:
escape the request URL, recommended by:
http://osgeo-org.1803224.n2.nabble.com/quot-Could-not-determine-geoserver-request-quot-proxy-error-td6108362.html

but am not sure whether there are any other ways to solve this, e.g., what do I need to add in proxy file... or change a setting of GeoServer?