Loki live tailing stops just after displaying initial batch

Hi,

I have just upgraded to Grafana 8.2.1 from 7.5.1 where everything worked fine.

I am using Loki 2.3.0.

I am opening explore view and selecting Loki as a datasource. When I start live tailing of logs it stops immediately after displaying first batch o logs. JavaScript console shows two errors:

ebSocket connection to 'wss://.../api/datasources/proxy/61/loki/api/v1/tail?query=...' failed: 
t._connectSocket	@	WebSocketSubject.js:94
t._subscribe	@	WebSocketSubject.js:190
e._trySubscribe	@	Observable.js:38
t._trySubscribe	@	Subject.js:92
(anonymous)	@	Observable.js:32
i	@	errorContext.js:19
e.subscribe	@	Observable.js:23
(anonymous)	@	map.js:6
(anonymous)	@	lift.js:10
(anonymous)	@	Observable.js:27
i	@	errorContext.js:19
e.subscribe	@	Observable.js:23
u	@	retryWhen.js:10
(anonymous)	@	retryWhen.js:28
(anonymous)	@	lift.js:10
(anonymous)	@	Observable.js:27
i	@	errorContext.js:19
e.subscribe	@	Observable.js:23
(anonymous)	@	finalize.js:5
(anonymous)	@	lift.js:10
(anonymous)	@	Observable.js:27
i	@	errorContext.js:19
e.subscribe	@	Observable.js:23
(anonymous)	@	map.js:6
(anonymous)	@	lift.js:10
(anonymous)	@	Observable.js:27
i	@	errorContext.js:19
e.subscribe	@	Observable.js:23
(anonymous)	@	catchError.js:9
(anonymous)	@	lift.js:10
Show 95 more frames

and:

runRequest.catchError Live tailing was stopped due to following error: undefined
(anonymous) @ runRequest.ts:149
(anonymous) @ catchError.js:10
s._error @ OperatorSubscriber.js:21
t.error @ Subscriber.js:43
t._error @ Subscriber.js:67
t.error @ Subscriber.js:43
i @ throwError.js:5
e._trySubscribe @ Observable.js:38
(anonymous) @ Observable.js:32
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ catchError.js:14
s._error @ OperatorSubscriber.js:21
t.error @ Subscriber.js:43
t._error @ Subscriber.js:67
t.error @ Subscriber.js:43
t._error @ Subscriber.js:67
t.error @ Subscriber.js:43
t._error @ Subscriber.js:67
t.error @ Subscriber.js:43
i @ throwError.js:5
e._trySubscribe @ Observable.js:38
(anonymous) @ Observable.js:32
i @ errorContext.js:19
e.subscribe @ Observable.js:23
v @ mergeInternals.js:18
m @ mergeInternals.js:13
s._next @ OperatorSubscriber.js:11
t.next @ Subscriber.js:34
(anonymous) @ Subject.js:38
i @ errorContext.js:19
t.next @ Subject.js:30
(anonymous) @ retryWhen.js:18
s._error @ OperatorSubscriber.js:21
t.error @ Subscriber.js:43
t._error @ Subscriber.js:67
t.error @ Subscriber.js:43
(anonymous) @ Subject.js:60
i @ errorContext.js:19
t.error @ Subject.js:53
o.onerror @ WebSocketSubject.js:158
error (async)
t._connectSocket @ WebSocketSubject.js:156
t._subscribe @ WebSocketSubject.js:190
e._trySubscribe @ Observable.js:38
t._trySubscribe @ Subject.js:92
(anonymous) @ Observable.js:32
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ map.js:6
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
u @ retryWhen.js:10
(anonymous) @ retryWhen.js:28
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ finalize.js:5
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ map.js:6
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ catchError.js:9
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ map.js:6
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ catchError.js:9
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ tap.js:15
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ finalize.js:5
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ share.js:60
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ takeUntil.js:7
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
v @ mergeInternals.js:18
m @ mergeInternals.js:13
s._next @ OperatorSubscriber.js:11
t.next @ Subscriber.js:34
(anonymous) @ from.js:55
e._trySubscribe @ Observable.js:38
(anonymous) @ Observable.js:32
i @ errorContext.js:19
e.subscribe @ Observable.js:23
i @ mergeInternals.js:47
(anonymous) @ mergeMap.js:14
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ throttle.js:39
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
i @ mergeInternals.js:47
(anonymous) @ mergeMap.js:14
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ query.ts:362
(anonymous) @ index.js:8
n.<computed> @ bindActionCreators.js:9
(anonymous) @ ExploreToolbar.tsx:46
(anonymous) @ SetInterval.tsx:55
(anonymous) @ tap.js:17
s._next @ OperatorSubscriber.js:11
t.next @ Subscriber.js:34
(anonymous) @ switchMap.js:14
s._next @ OperatorSubscriber.js:11
t.next @ Subscriber.js:34
(anonymous) @ from.js:55
e._trySubscribe @ Observable.js:38
(anonymous) @ Observable.js:32
i @ errorContext.js:19
e.subscribe @ Observable.js:23
(anonymous) @ switchMap.js:14
s._next @ OperatorSubscriber.js:11
t.next @ Subscriber.js:34
(anonymous) @ Subject.js:38
i @ errorContext.js:19
t.next @ Subject.js:30
componentDidMount @ SetInterval.tsx:60
pa @ react-dom.production.min.js:219
Au @ react-dom.production.min.js:259
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
Cu @ react-dom.production.min.js:252
mu @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
$o @ react-dom.production.min.js:123
Wo @ react-dom.production.min.js:122
Re @ react-dom.production.min.js:292
Kt @ react-dom.production.min.js:73
Show 136 more frames