Giter VIP home page Giter VIP logo

Comments (3)

william-ferguson-au avatar william-ferguson-au commented on June 3, 2024

This is just an indicator that the connection to your reports server (in
this case BugSense) timed out. ACRA will attempt to send the report again
later. Perhaps that Exceptionshould be logged at warning instead of error.

The question is, why is it timing out for your device? Does it have a net
connection?
Perhaps you need to increase the ACRA SocketTimeout config. I think default
is 3000 or 5000 millis.
If you increase that to 10,000 millis does it help?

William

On Fri, Oct 26, 2012 at 6:39 AM, Coding Crow [email protected]:

Device: Samsung Galaxy Ace
Android: 2.2.1

I am getting the below error while using ACRA from the real device whereas
the emulator is sending reports with the same code.

10-26 01:42:17.405: D/ACRA(29928): Sending request to
http://www.bugsense.com/api/acra?api_key=3041ce56
10-26 01:42:24.687: D/ACRA(29928): SocketTimeOut - increasing time out to
10000 millis and trying again
10-26 01:42:24.992: D/ACRA(29928): SocketTimeOut - increasing time out to
10000 millis and trying again
10-26 01:42:27.695: E/ACRA(29928): Failed to send crash report for
1351195791000-approved.stacktrace
10-26 01:42:27.695: E/ACRA(29928): org.acra.sender.ReportSenderException:
Error while sending report to Http Post Form.
10-26 01:42:27.695: E/ACRA(29928): at
org.acra.sender.HttpPostSender.send(HttpPostSender.java:139)
10-26 01:42:27.695: E/ACRA(29928): at
org.acra.SendWorker.sendCrashReport(SendWorker.java:178)
10-26 01:42:27.695: E/ACRA(29928): at
org.acra.SendWorker.checkAndSendReports(SendWorker.java:141)
10-26 01:42:27.695: E/ACRA(29928): at
org.acra.SendWorker.run(SendWorker.java:77)
10-26 01:42:27.695: E/ACRA(29928): Caused by:
org.apache.http.conn.ConnectTimeoutException: Connect to /
74.125.135.121:80 timed out
10-26 01:42:27.695: E/ACRA(29928): at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121)
10-26 01:42:27.695: E/ACRA(29928): at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:153)
10-26 01:42:27.695: E/ACRA(29928): at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
10-26 01:42:27.695: E/ACRA(29928): at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
10-26 01:42:27.695: E/ACRA(29928): at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:434)
10-26 01:42:27.695: E/ACRA(29928): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
10-26 01:42:27.695: E/ACRA(29928): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
10-26 01:42:27.695: E/ACRA(29928): at
org.acra.util.HttpRequest.sendPost(HttpRequest.java:141)
10-26 01:42:27.695: E/ACRA(29928): at
org.acra.sender.HttpPostSender.send(HttpPostSender.java:136)
10-26 01:42:27.695: E/ACRA(29928): ... 3 more


Reply to this email directly or view it on GitHubhttps://github.com//issues/9.

from acra.

agarwlGaurav avatar agarwlGaurav commented on June 3, 2024

Yes, the device has net connection. How to increase SocketTimeout. I could not find any such thing in the documentation.

from acra.

william-ferguson-au avatar william-ferguson-au commented on June 3, 2024

@ReportsCrashes(formUri = "
http://www.bugsense.com/api/acra?api_key=blah_blah", formKey="",
socketTimeout = 10000, // This is the milliseconds waiting for data.

On Sat, Oct 27, 2012 at 2:00 AM, Coding Crow [email protected]:

Yes, the device has net connection. How to increase SocketTimeout. I could
not find any such thing in the documentation.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-9817755.

from acra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.