8000 ACRA incompatible with Cronet · Issue #1227 · ACRA/acra · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ACRA incompatible with Cronet #1227
Closed
Closed
@fabrantes

Description

@fabrantes

Android 11
ACRA 7.8.4
cronet 106.5249.126

When using the Cronet HTTP library (which replaces the default URL class stream handler factory factory) ACRA fails sending the HTTP request with the following exception. Given Cronet's popularity this seems worth adding?

                org.acra.sender.ReportSenderException: Policy marked this task as incomplete. ACRA will try to send this report again.
                at org.acra.sender.ReportDistributor.sendCrashReport(Unknown Source:230)
                at org.acra.sender.ReportDistributor.distribute(Unknown Source:29)
                at org.acra.sender.SendingConductor.sendReports(Unknown Source:119)
                at org.acra.sender.JobSenderService.onStartJob$lambda-0(Unknown Source:26)
                at org.acra.sender.JobSenderService.a(Unknown Source:0)
                at org.acra.sender.a.run(Unknown Source:8)
                at java.lang.Thread.run(Thread.java:923)
                Caused by: org.acra.sender.ReportSenderException: Error while sending JSON report via Http POST
                at org.acra.sender.HttpSender.send(Unknown Source:195)
                at org.acra.sender.ReportSender.send(Unknown Source:15)
                at org.acra.sender.ReportDistributor.sendCrashReport(Unknown Source:66)
                ... 6 more
                Caused by: java.lang.IllegalStateException: Use setFixedLengthStreamingMode() or setChunkedStreamingMode() for writing after connect
                at xn.a.l(Unknown Source:95)
                at xn.a.write(SourceFile:5)
                at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
                at java.io.FilterOutputStream.write(FilterOutputStream.java:103)
                at org.acra.http.DefaultHttpRequest.write(SourceFile:2)
                at org.acra.http.DefaultHttpRequest.write(SourceFile:1)
                at org.acra.http.BaseHttpRequest.writeContent(Unknown Source:60)
                at org.acra.http.BaseHttpRequest.send(Unknown Source:123)
                at org.acra.sender.HttpSender.sendWithoutAttachments(Unknown Source:56)
                at org.acra.sender.HttpSender.sendHttpRequests(Unknown Source:111)
                at org.acra.sender.HttpSender.send(Unknown Source:154)
                ... 8 more

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0