# \[BUG\] Stream is closed while streaming with Plex token. Why?

**URL:** https://forums.plex.tv/t/bug-stream-is-closed-while-streaming-with-plex-token-why/848043
**Category:** Remote Access
**Tags:** server-linux, plex-web
**Created:** [July 22, 2023, 2:56am UTC](https://forums.plex.tv/t/bug-stream-is-closed-while-streaming-with-plex-token-why/848043 "2023-07-22T02:56:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Alliance-Digital](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@Alliance-Digital](https://forums.plex.tv/u/Alliance-Digital)
#### Post date: [July 22, 2023, 2:56am UTC](https://forums.plex.tv/t/bug-stream-is-closed-while-streaming-with-plex-token-why/848043/1 "2023-07-22T02:56:36Z")

</div>

Server Version: 1.32.5.7328  
Player Version: VLC or Kodi

Hello everyone i have an kodi app that use the http with the token in parameters so it can open my streams on my old enigma2 receiver.  
Btw the stream stop after i launch a 2nd stream for no real reason.

Here is the logs:  
Jul 22, 2023 04:44:39.441 [140624374291256] DEBUG - Request: [xxx.xxx.xxx.xx[:47380](https://xxx.xxx.xxx.xxx:47380/) (WAN)] GET /library/parts/193697/1609103323/file.mkv (15 live) #71dcd7 Signed-in Token ( Prod) (XUI) (range: bytes=23724158-) / Accept =\> _/_ / Accept-Language =\> fr / Host =\> xxx.xxx.xxx.xx[:31766](https://xxx.xxx.xxx.xxx:31766/) / If-Match =\> “f670ce303d1ff836d6509075aa9a87b90dd77ee7” / Range =\> bytes=23724158- / User-Agent =\> VLC/3.0.17.3 LibVLC/3.0.17.3 / X-Plex-Token =\> xxxxxxxxxxxxxxxxxxxx

Jul 22, 2023 04:44:39.558 [140624374291256] DEBUG - [Req#71dcd7] Streaming Resource: Terminating session 0x7fe5a914e948:token=xxxxxxxxxxxxxxxxxxxx which is using 8976kbps of WAN bandwidth. Used is now 0kbps

Jul 22, 2023 04:44:39.559 [140624374291256] DEBUG - [Req#71dcd7] Streaming Resource: Terminated session 0x7fe5a914e948:token=xxxxxxxxxxxxxxxxxxxx with reason Client stopped playback.

Jul 22, 2023 04:44:39.559 [140624374291256] DEBUG - [Req#71dcd7] Streaming Resource: Removing session 0x7fe5a914e948:token=xxxxxxxxxxxxxxxxxxxx

Jul 22, 2023 04:44:39.559 [140624374291256] DEBUG - [Req#71dcd7] Streaming Resource: Attempting to create AdHoc dp session for part 193697

Jul 22, 2023 04:44:39.563 [140624374291256] DEBUG - [Req#71dcd7] TranscodeUniversalRequest: using profile Generic

Jul 22, 2023 04:44:39.563 [140624374291256] DEBUG - [Req#71dcd7] Downloading document [http://127.0.0.1:32400/library/metadata/108391?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=token%3DCnxg\_yL1rxzPArQyyb\_K](http://127.0.0.1:32400/library/metadata/108391?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=token%3dCnxg_yL1rxzPArQyyb_K)

Jul 22, 2023 04:44:39.563 [140624374291256] DEBUG - [Req#71dcd7/HCl#9a9] HTTP requesting GET [http://127.0.0.1:32400/library/metadata/108391?X-Plex-](http://127.0.0.1:32400/library/metadata/108391?X-Plex-)

Tautulli doesn’t have any script running i double checked it, and the stop after x pause time minutes is set to 0.

CPU 4 Cores.  
Ram : 16 Gb  
Ubuntu 20.04

Any help on throubleshoting this ?  
Is this a know issue on plex forum ?

This is how url is oppened according to my diagnosis.  
[http://xxx.xxx.xxx.xxx:31766/library/parts/138085/1629993100/file.mkv?X-Plex-Token=](http://xxx.xxx.xxx.xxx:31766/library/parts/138085/1629993100/file.mkv?X-Plex-Token=xxxxxx_xxxxx_xxx)xxxxxx\_xxxxx\_xxx

I also have plenty of those errors.

 ![CleanShot 2023-07-22 at 07.28.26@2x](https://global.discourse-cdn.com/plex/original/4X/4/5/1/451b92f742e9a20c07573aa193843878d97e07f2.png)

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [October 20, 2023, 2:56am UTC](https://forums.plex.tv/t/bug-stream-is-closed-while-streaming-with-plex-token-why/848043/2 "2023-10-20T02:56:42Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
