access url with port

283 views
Skip to first unread message

Yatno Sudar

unread,
Aug 25, 2015, 12:27:50 AM8/25/15
to Volley Users
hai guys i try to access url with specific port like http://api.example.com:14001/, but i still get error message like this 

com.android.volley.NoConnectionError: java.net.UnknownHostException: http://api.example.com:14001/v1/getdata

but if i use browser or postman(plugin for chrome) success request.

anyone have same error like me?
for information at the singleton volley and requestQueue like this

requestQueue = Volley.newRequestQueue(context,new HurlStack());
 

Ficus Kirkpatrick

unread,
Aug 25, 2015, 12:03:00 PM8/25/15
to Yatno Sudar, Volley Users
Are you literally using api.example.com as the hostname?

--
You received this message because you are subscribed to the Google Groups "Volley Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to volley-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yatno Sudar

unread,
Aug 25, 2015, 10:12:50 PM8/25/15
to Volley Users, yatno...@gits.co.id
it's just example url, 
Reply all
Reply to author
Forward
0 new messages