Android Question HttpUtils2 Error: libcore.io.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer)

rpina

Member
Licensed User
Longtime User
Hi all,
I'm trying to consume a web service using HttpUtils2

My code is
B4X:
Job.PostString(PostUrl,"nome=prova&datachiamata=25/09/2013 17:45&durata=17:00&numero=3396859511&tipochiamata=1&idchiamata="& chk.Tag &"".Replace(" ","%20"))
                    Job.GetRequest.Timeout = 60000
I use this to store calls details to a remote database.

When JobDone routine is fired it gives me back an error of
Error: libcore.io.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer)

As I test my c# webservice from browser it correctly responds with
<stringxmlns="http://tempuri.org/">555</string>

Any suggestion please?

Kind regards

Riccardo
 

rpina

Member
Licensed User
Longtime User
1. Make sure that the request is correct.
2. Try to add a user-agent header.

Hi Erel,
I've made a test, making my webservice return nothing and my Job says that it is successfull, as my log says
JobName = Job, Success = false

When I try to get a return string from web service I see that it is correctly reached from my phone, as I see data stored in my database, but when it givev back return string it gives me error shown in first post.
 
Upvote 0
Top