Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

HttpRequest component throws "505" error

Hi!
I have an HttpRequest component throwing a "505 HTTP Version Not Supported" error
The URI parameter contains:
"http://localhost:8080/iav350/update?stream.file=E:/Data Inflow/SolrXML/gtd.xml&commit=true&optimize=true"
Issuing the URI in the address field of a browser works fine though so the URI seems to be syntactically correct.
What am I doing wrong here?
Cheers
Labels (3)
12 Replies
janhess
Creator II
Creator II

You don't have to post every time it throws the error.
Anonymous
Not applicable
Author

BTW - I use the "GET" method...
Anonymous
Not applicable
Author

Hi
We need to fix this issue step by step.
Now change the URL into "http://www.google.com/" in tHttpRequest. "Get" method.
If you still get "505 error", maybe you are behind a http proxy.
If it works fine, you'd better check the configuration file of iav350 web application.
Regards,
Pedro
Anonymous
Not applicable
Author

Hi!
Entering " www.google.com" worked without a glitch. Hmmm, seems that I have an issue trying to reach the Solr-servlet in Tomcat. This is what I get in the "Tomcat access log":
127.0.0.1 - - "GET /iav350/update?stream.file=E:/Data Inflow/SolrXML/gtd.xml&commit=true&optimize=true HTTP/1.1" 505 -
Don't know if this helps...
Cheers
Anonymous
Not applicable
Author

Hi
The version is http/1.1.
Which version of JDK do you use? version of tomcat?
I don't know why it doesn't support HTTP/1.1.
Regards,
Pedro
Anonymous
Not applicable
Author

Hmmm, the installer's name is: jre-6u31-windows-i586-iftw.exe, Tomcat is v7...
Cheers
Anonymous
Not applicable
Author

Hi!
Any progress on this?
Cheers
Anonymous
Not applicable
Author

Hi
Here are all code about http request in tHttpRequest.
java.net.URL url_tHttpRequest_1 = new java.net.URL(
"http://localhost:8080/");
java.net.HttpURLConnection urlConn_tHttpRequest_1 = (java.net.HttpURLConnection) url_tHttpRequest_1
.openConnection();
urlConn_tHttpRequest_1.setRequestMethod("POST");
urlConn_tHttpRequest_1.setDoOutput(true);
urlConn_tHttpRequest_1.setDoInput(true);
urlConn_tHttpRequest_1.setUseCaches(false);

The class java.net.httpURLConnection can't modify http version.
I have talked with my co-worker and google it online.
It seems that this is still due to JDK...
I know that iftw is "Install From The Web". I try to confirm whether this is a bug in JDK. But fails.
Can you reinstall a normal version without installation online?
Regards,
Pedro
Anonymous
Not applicable
Author

Hi Pedro!
Absolutely - I'll try to install another version in parallell and see if it solves the issue 0683p000009MACn.png Stay tuned...
Hmmm, just for clarification, what do you mean with "normal version"?
Cheers