Splamy / TS3AudioBot

Advanced Musicbot for Teamspeak 3
https://splamy.de/TSAudioBot/Home
Open Software License 3.0
702 stars 140 forks source link

Json Merge - Maximum Length #991

Open MoroseCorpse opened 2 years ago

MoroseCorpse commented 2 years ago

I have the following request to the bot api: /api/json/merge/(/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))(/bot/use/1/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))(/bot/use/2/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))(/bot/use/3/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))(/bot/use/4/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))(/bot/use/5/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))(/bot/use/6/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))(/bot/use/7/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))(/json/merge/(/bot/info/template/952046650))(/json/merge/(/bot/info/template/561090329))

The problem now is that I don't get any information about the last 3 bots and instead only empty arrays and with the 6th bot also already the last few information are missing. If I query these bots individually, it works fine.

Therefore, my question: Is there a maximum in the json merge command or is the error in something else? Do I have to split my queries now or is there another way to send such queries for e.g. 50 or even 100 bots at the same time?

Splamy commented 2 years ago

There is no internal limitation. So it must be something else. You could try adding / between the merge parameters. I'm suprised this even works.

/api/json/merge/(/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/1/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/2/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/3/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/4/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/5/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/6/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/7/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/json/merge/(/bot/info/template/952046650))/(/json/merge/(/bot/info/template/561090329))

MoroseCorpse commented 2 years ago

There is also the same problem with this API request. This is now my request: /api/json/merge/(/bot/use/0/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/1/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/2/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/3/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/4/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/5/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/6/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/7/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/8/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/9/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/10/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/11/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/bot/use/12/(/json/merge/(/bot/info)/(/info/%40-1/5)/(/song)/(/repeat)/(/random)/(/volume)))/(/json/merge/(/bot/info/template/651642331))/(/json/merge/(/bot/info/template/227601607))

As additional info: I use the latest master version of TS3AudioBot