You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
close(m.tgSDKWait) // wake the riders; they re-read the cache
744
763
m.tgSDKWait=nil
745
764
}
746
765
m.tgSDKMu.Unlock()
766
+
767
+
// Logging happens after the unlock: a slog handler can write to disk, and the
768
+
// riders released just above are waiting to take this same mutex.
769
+
//
770
+
// The two failure branches cost the operator the same thing — /tg.js goes out
771
+
// empty, so window.Telegram never appears and the "open in app" buttons stop
772
+
// working inside the Telegram Mini App — so both spell that out. They differ
773
+
// only in cause, which is exactly what the operator can't see from outside.
774
+
switch {
775
+
caselanded:
776
+
ifrecovered {
777
+
logInfo("telegram mini app sdk reachable again", "bytes", len(b))
778
+
}
779
+
case!shout: // same failure already reported inside the log gap
780
+
caseerr!=nil:
781
+
logWarn("telegram mini app sdk fetch failed; /tg.js will be served empty and in-app deep links will not work",
782
+
"url", telegramSDKURL, "err", err)
783
+
default:
784
+
logWarn("telegram mini app sdk fetch returned an unexpected body (blocked or truncated); /tg.js will be served empty and in-app deep links will not work",
0 commit comments