HTTPSUrlConnection returns responseCode of -1 when using quickpost feature
sonicmax opened this issue · 1 comments
sonicmax commented
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.
sonicmax commented
Maybe it's an issue with the redirect?