• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Bug Can't get webstream working

Status
Not open for further replies.

Zahzi

Member
Operating System: Ubuntu 16.04
SinusBot Version: 0.10.7-a91e4b6
TS3 Version
: 3.0.19.4

Problem Description
Since the update to this version a few days ago I have not been able to get the http webstream using the API. Using the Sinusbot-API-PHP class, I'm able to get the webstream token as well as the webstream, however, the page shows blank and has status code 401 unauthorized.

I have also had similar results using purely curl:
1. Login, success returns token
2. POST to https://server:8080/api/v1/bot/i/x-x-x-x-x/streamToken with the above token in header a
3. GET to https://server::8080/api/v1/bot/i/x-x-x-x-/stream/(stream token from above)

The token is returned successfully from step 2, but the GET request in #3 returns 401 unauthorized. If I include the header with the token from step 1, then it returns 403 forbidden.

Thanks in advance for any help!


Config:
Code:
TS3Path = "/home/sinusbot/sinusbot/teamspeak3-client/ts3client_linux_amd64"
ListenHost = "0.0.0.0"
DataDir = "/home/sinusbot/sinusbot/data/"
ListenPort = 8080
LocalPlayback = false
EnableLocalFS = false
MaxBulkOperations = 300
LogLevel = 10
EnableProfiler = false
YoutubeDLPath = "/usr/local/bin/youtube-dl"
EnableDebugConsole = false
UploadLimit = 83886080
RunAsUser = 0
RunAsGroup = 0
InstanceActionLimit = 6
UseSSL = true
SSLKeyFile = "ssl/privkey.pem"
SSLCertFile = "ssl/fullchain.pem"
Hostname = "[REDACTED]"
SampleInterval = 60
StartVNC = false
EnableWebStream = true
LogFile = "log.log"
LicenseKey = "[REDACTED]"
IsProxied = false
DenyStreamURLs = []
Pragma = 0

[YoutubeDL]
  BufferSize = 524288
  MaxDownloadSize = 419430400
  MaxDownloadRate = 104857600
  CacheStreamed = false

[TS3]
  AvatarMaxWidth = 0
  AvatarMaxHeight = 0
  AllowGIF = false

[StreamRewrites]

[Scripts]
  AllowReload = false
  EnableTimer = false

[Themes]
  Default = ""

[SpeechRecognition]
  Enable = false

[FFmpeg]
  UserAgent = "SinusBot (0.9.16-10f0fad)"

[DAV]
  Enable = false

[XServer]
  Delay = 0
  Debug = false

Fiag script:
Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Ubuntu 16.04.3 LTS
- OS x64 check: OK
- Kernel: Linux 4.4.0-96-generic x86_64
- Load Average: 0.18 0.30 0.34
- Uptime: 11 days, 19 hours, 14 minutes, 52 seconds
- OS Updates: 21 (updates available!)
- OS Missing Packages: None (v1)
- OS APT Last Update: 08.10.2017 04:24:44 UTC +00:00:00
- Bot Start Script: found at /etc/init.d/sinusbot [perms: 755]
- DNS resolution check: sinusbot.com resolved to 104.18.40.220 -> OK
- HTTPS check with IPv4 mode: SUCCESS [Connection was established to sinusbot.com]
- HTTPS check with IPv6 mode: FAILED  [Failed connecting to sinusbot.com]
- CPU:
    Architecture:          x86_64
    CPU(s):                2
    Thread(s) per core:    1
    Core(s) per socket:    1
    Socket(s):             2
    Model name:            Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
    CPU MHz:               2199.994
    Virtualization:        VT-x
    Hypervisor vendor:     KVM
    Virtualization type:   full
- RAM: 1002.46 MB/1.95 GB in use (50%)
- SWAP: 360.69 MB/1.99 GB in use (17%)
- DISK: 25.10 GB/13.58 GB in use (184%)
- Package versions:
   > libglib: 2.48.2-0ubuntu1

BOT INFORMATION
- Status: running (PIDs: 14110 14109, User: daquan
sinusbot)
- Webinterface: port locally reachable (Port: 8080)
- Binary: /home/sinusbot/sinusbot/sinusbot (MD5 Hash: 1fbc12a341f5e6f07b1bfb00b796b9e1)
- Version: 0.10.7-a91e4b6
- TS3 Plugin: installed (md5 hash match)
   - Bot Plugin: 5d26494473e8bc268a3859768f4b3e3f
   - TS3 Client: 5d26494473e8bc268a3859768f4b3e3f
- Config:
   - LogLevel = 10 (debug log active)
   - TS3Path = /home/sinusbot/sinusbot/teamspeak3-client/ts3client_linux_amd64 (Version 3.0.19.4)
   - YoutubeDLPath = /usr/local/bin/youtube-dl (does exist, version: 2017.05.14)
- Installed scripts: advertising.js; alonemode.js; aloneMode.js; BackToDefault.js; badchan.js; bookmark.js; Change_Channelcodec_And_Quality_Automaticly.js; come.js; covatar.js; Default-Channel.js; dev.js; followme.js; idle.js; metadata.js; norecording.js; rememberChannel.js; showcase.js; sound.js; welcome.js; welcometext.js; YT-search.js

OTHER INFORMATION
- Report date: 08.10.2017 23:37:29 UTC +00:00:00 (timezone: Etc/UTC)
- TeamSpeak 3 Version: 3.0.19.4
- youtube-dl Version: 2017.05.14
- DiagScript version: 0.5.1
==========================================================
 

lululombard

Member
Exact same issue since I updated my SinusBot server.

EDIT : I run SinusBot 0.10.8-71ba94b
 
Last edited:

lululombard

Member
Thanks for that quick update, but it seems that the bug is still here unfortunately.
25270511009267813
 
Status
Not open for further replies.
Top