Repository navigation
Closed as duplicate
Closed as duplicate
Copy link
Description
What was reported
On 2 October 2026 the owner signed in to Petersburg's diary from the app, with a real account. After «Войти» nothing appeared for over a minute: no error, no timeout message, nothing.
Why that should not be possible, by the code
Every leg of the sign-in is bounded and ends in a dialog:
- Preflight.
DiarySignInImpl.preflightasks our server's/api/v1/diary/capabilities. Production answers in 0.3 s; the client'scallTimeoutis 60 s. - Phone to diary.
PetersburgSignIngoes throughUpstreamHttp.client: connect 10 s, read 20 s,callTimeout40 s. EveryIOExceptionis classified. - Registration. Production cannot reach the diary (The production server cannot reach Petersburg's diary at all: the city's network drops connections from outside Russia #235), so
POST /api/v1/diary/sessionmust answer503withX-Diary-Unavailable: upstreamwithin about 6 s.DiarySignInProblem.ofServermaps that to a problem that keeps the session. - The step.
SignInStep.failsetsdialog = true, andSignInPagedrawsLessonsDialogwheneverui.dialog && problem != null.
So the worst case is about 40 s and then a dialog. Something on the device departs from this reading.
What is not known yet, and is needed to find it
- The build: version and commit from «О приложении». An APK from before Read «Сетевой город» as a second diary, and let a phone in through its own school's diary #140 signs in through
/api/v1/diary/logininstead. - The screen: the first run's sign-in step, or Настройки → «Дневник».
- What changed after the press, if anything: whether the button turned into a spinner, the fields greyed out, or a line appeared under the form. The line can sit under the keyboard.
- Whether a VPN was on.
- Whether the app closed or restarted. Some phones show no «app has stopped» dialog, and
CrashReporterkeeps a report when recording is on.
Ruled out so far
- An exception swallowed between the network and the screen.
DiarySignInImpl,SignInStepandDiarySignInProblem.ofeach turn every failure into a problem, andCrashReporterpasses uncaught ones on to the system handler. submitSignInreturning early for want of a target.targetand the header that draws the form are set together inresolveTarget.
One structural weakness found on the way
UpstreamHttp's Call.await() (UpstreamHttp.kt:150) resumes the coroutine only from OkHttp's callbacks. Anything but an IOException escaping onResponse leaves the continuation unresumed and kills OkHttp's thread, and with it the process. That reads as a crash rather than silence, so it is probably not this report, but it is the one place a sign-in can end with no answer from this code.
Related: #235.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
lumenpearson commentedon Oct 2, 2026
This is #233: «Войти» sitting without an answer for minutes, reported by the owner the same morning and filed by the session that fixed it. #234 merged at 09:28 UTC on 2 October 2026 (
f2cebbd). It puts one 25-second deadline over the whole exchange with the diary and a 10-second one on the preflight, both ending in the existing «не ответил вовремя» dialog. The phone this report came from was almost certainly running an APK from before that merge.Closing as a duplicate of #233. If a build at
f2cebbdor later still shows nothing after «Войти», reopen this. The developer mode (#237) records every request with a running clock while it is in flight, and each sign-in step with how it ended, so the next report can name the leg it is stuck on.#235 stays open regardless: the server cannot reach Petersburg's diary from Frankfurt. That is a separate defect, and no deadline on the phone fixes it.
Generated by Claude Code
Say where the work stands after the developer mode, and that the serv…