Skip to content

Signing in to Petersburg's diary on a phone shows nothing for over a minute: no progress, no error #236

Closed as duplicate

Description

@lumenpearson

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.preflight asks our server's /api/v1/diary/capabilities. Production answers in 0.3 s; the client's callTimeout is 60 s.
  • Phone to diary. PetersburgSignIn goes through UpstreamHttp.client: connect 10 s, read 20 s, callTimeout 40 s. Every IOException is 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/session must answer 503 with X-Diary-Unavailable: upstream within about 6 s. DiarySignInProblem.ofServer maps that to a problem that keeps the session.
  • The step. SignInStep.fail sets dialog = true, and SignInPage draws LessonsDialog whenever ui.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/login instead.
  • 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 CrashReporter keeps a report when recording is on.

Ruled out so far

  • An exception swallowed between the network and the screen. DiarySignInImpl, SignInStep and DiarySignInProblem.of each turn every failure into a problem, and CrashReporter passes uncaught ones on to the system handler.
  • submitSignIn returning early for want of a target. target and the header that draws the form are set together in resolveTarget.

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.

Activity

  1. lumenpearson commented on Oct 2, 2026

    @lumenpearson
    OwnerAuthor

    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 f2cebbd or 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions