• 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.

HTTP API - Add Job returning error code 406 despite completing the job

HeyItsBATMAN

New Member
Hi there,
I've been messing around the the HTTP API but encountered an issue with the API request described in the Documentation as Upload_and_Download-addJob

After sending the POST request to api/v1/bot/jobs, SinusBot downloads the requested link and completes the job, but the POST request returns HTTP error code 406.

In the image below, you can see me doing the Post request on the left (line 190) and in the bottom left corner you can see the error response.
On the right half of the screen you can see the Bot-Log noting that a job has been added and that it's being downloaded with youtube-dl.
sinusbot request 406.png

Here's the downloaded song in the music overview
sinusbot success playlist.png

And here it is in the jobs overview
sinusbot success jobs.png

I have tried on the Beta "0.14.3-0e747fd" aswell as on the Alpha "1.0.0-alpha.6-a47ac17".
Other GET and POST requests are also working, just not this one.
Arch Linux Server Specs:
sinusbot archlinux neofetch.png
Youtube-DL version:
2019.03.01-1
SinusBot TeamSpeak Client: 3.2.3 from 01 Oct 2018 (this is what it says in the CHANGELOG in the TeamSpeak Client folder)
TeamSpeak Server Version: 3.5.1 (not mine)
SinusBot Bot Log with Loglevel 10:
sinusbot bot log loglevel 10.png


Since this is my first post I hope I'm not missing anything relevant
Thanks in advance!
 

fabm3n

Well-Known Member
Tier II
Tier III
Tier I
is awesome!
Insider
This problem is from a old bot version. Update and create a new thread if the problem still exists.
 
Top