Skip to content

HTTPSUrlConnection returns responseCode of -1 when using quickpost feature #39

@sonicmax

Description

@sonicmax

Example log:

V/WebRequest: headerFields: {null=[], =[0], X-Android-Received-Millis=[1486564615173], X-Android-Sent-Millis=[1486564615173]}

V/WebRequest: responseCode: -1

The response headers are fine with other types of POST but for some reason the postmsg.php response is totally messed up. Need to test in different versions of Android. Might be worth looking into using asyncpost.php endpoint instead of postmsg.php

We can work around the error by just not showing "Message posted"/"Post failed" snackbars after quickposting if -1 response is detected, but ideally we should fix this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions