app: stop the autorun upload pointing at a listener that is gone
"upload failed: HTTP 400 client sent an HTTP request to an HTTPS server" is a TLS listener rejecting cleartext, and the cleartext was ours: REPORT_UPLOAD_URL was http://89.185.109.150:443/report, which used to be the adb-beacon receiver holding 0.0.0.0:443 in plaintext. Disabling that receiver and giving 443 to echolot-server left this posting plain HTTP at a TLS port. Blanked rather than repointed. The endpoint existed so an unattended run could be collected without adb, and autorun reports are now read straight off the device with `run-as cat` — so it was buying nothing and emitting an alarming error for a debugging convenience. Deliberately not aimed at /v1/runs either: that is the consent-gated upload, and a debugging shortcut must not be able to satisfy it by accident. The message says what happened instead of implying something broke. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
a17c3fd9e6
commit
d5b1bab577
@@ -165,7 +165,13 @@ class RunViewModel(app: Application) : AndroidViewModel(app) {
|
||||
if (devUpload) {
|
||||
state = state.copy(currentStep = "uploading report")
|
||||
val r = withContext(Dispatchers.IO) { ReportUploader.upload(doc) }
|
||||
status = if (r.ok) "uploaded ✓ ${r.detail}" else "upload failed: ${r.detail}"
|
||||
status = when {
|
||||
r.ok -> "uploaded ✓ ${r.detail}"
|
||||
// Not a failure worth alarming about: the dev collection endpoint is simply
|
||||
// not configured, and the run is on the device either way.
|
||||
r.detail.startsWith("no upload URL") -> "run complete — read it with adb"
|
||||
else -> "upload failed: ${r.detail}"
|
||||
}
|
||||
}
|
||||
if (archived != null && settings.autoUpload) {
|
||||
state = state.copy(currentStep = "uploading to server")
|
||||
|
||||
Reference in New Issue
Block a user