Forum Discussion

technigirl74's avatar
Occasional Contributor
6 years ago

Getting URIException: Invalid Query but HTTP query is correct



I have a very simple URI call which cannot be run in SoapUI because a Java error is returned.  The call (as shown in the raw request area) is simply:

Accept-Encoding: gzip,deflate


However SoapUI will not return the response and shows a Java error when I hit Send:

Mon Nov 05 12:13:00 CST 2018: ERROR: org.apache.commons.httpclient.URIException: Invalid query


Meanwhile, running the same query via CURL works just fine.  Also, the HTTP log within SoapUI shows that the query was sent and correct response received (see copy and paste below).


My question is, why is the SoapUI request editor erroring out and not showing the response?  I need to grab a few of the parameters that are returned in the response and parameterize them.  Is there a way to get around this issue?


Mon Nov 05 12:13:00 CST 2018: DEBUG: http-outgoing >>
GET / HTTP/1.1
accept-language: en-US,en;q=0.9
pragma: no-cache
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
:method: GET
:scheme: https
upgrade-insecure-requests: 1
:path: /
cache-control: no-cache
accept-encoding: gzip, deflate, br
user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Content-Length: 0
Connection: Keep-Alive


1 Reply

  • Nastya_Khovrina's avatar
    SmartBear Alumni (Retired)

    Hi technigirl74,


    I see that you have already opened a Support case about this issue. Let's continue working in the corresponding Support case.