简体   繁体   中英

Android Volley error while posting data to server

here is the api response which works fine While posting data to the server I'm getting server volley error as response code but at the same time remaining API working fine.

在此处输入图片说明

HTTP 404 ordinary means "page not found" ...

host-name mydrivinglession.co.uk cannot even be resolved in DNS :

$ traceroute mydrivinglession.co.uk
mydrivinglession.co.uk: Name or service not known

... nor is it registered with co.uk

mydrivinglession.co.uk is available!

guess you would have to remove mydrivinglession.co.uk from your local hosts file... that most likely the only reason why the response, which you claim would be "working", appears to be "working".

one might want to establish a publicly available API , before attempting to perform requests... because your requests might run against a fantasy domain in the clouds, which nobody knows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM