cipheroidharshal / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

"Host name may not be null" While loading https image #95

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to load this url 
https://tibbr_eval.s3.amazonaws.com/assets/raweng_com/images/users/profile_image
s/000/000/005_large.jpg?1352469924

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
android-query-full.0.23.16.jar, Android 4.04

Please provide any additional information below.
W/AQuery  ( 1460): creating http client
W/AQuery  ( 1460): java.lang.IllegalArgumentException: Host name may not be null
W/AQuery  ( 1460):      at org.apache.http.HttpHost.<init>(HttpHost.java:83)
W/AQuery  ( 1460):      at 
org.apache.http.impl.client.AbstractHttpClient.determineTarget(AbstractHttpClien
t.java:497)
W/AQuery  ( 1460):      at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:4
87)
W/AQuery  ( 1460):      at 
com.androidquery.callback.AbstractAjaxCallback.httpDo(AbstractAjaxCallback.java:
1468)
W/AQuery  ( 1460):      at 
com.androidquery.callback.AbstractAjaxCallback.httpGet(AbstractAjaxCallback.java
:1292)
W/AQuery  ( 1460):      at 
com.androidquery.callback.AbstractAjaxCallback.network(AbstractAjaxCallback.java
:1209)
W/AQuery  ( 1460):      at 
com.androidquery.callback.AbstractAjaxCallback.networkWork(AbstractAjaxCallback.
java:1047)
W/AQuery  ( 1460):      at 
com.androidquery.callback.AbstractAjaxCallback.backgroundWork(AbstractAjaxCallba
ck.java:994)
W/AQuery  ( 1460):      at 
com.androidquery.callback.AbstractAjaxCallback.run(AbstractAjaxCallback.java:957
)
W/AQuery  ( 1460):      at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
W/AQuery  ( 1460):      at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
W/AQuery  ( 1460):      at java.lang.Thread.run(Thread.java:856)

I have added self-signed certificate in AbstractAjaxCallback.setSSF method.

Can you please help me?

Original issue reported on code.google.com by nishant....@raweng.com on 10 Nov 2012 at 11:01

GoogleCodeExporter commented 8 years ago
Underscore "_" is not a valid hostname and the underlying http client rejects 
it.

This is the same as the other underscore domain support requests.

Original comment by tinyeeliu@gmail.com on 30 Nov 2012 at 1:32

GoogleCodeExporter commented 8 years ago
Thank you.

Original comment by nishant....@raweng.com on 30 Nov 2012 at 1:40

GoogleCodeExporter commented 8 years ago
Fixed in latest beta.

http://code.google.com/p/android-query/downloads/list

Original comment by tinyeeliu@gmail.com on 30 Nov 2012 at 2:04