Giter Site home page Giter Site logo

Comments (7)

MaximilianAst avatar MaximilianAst commented on June 16, 2024 2

as a side note:

I've managed to find the correct server Id by doing an incremental search and just connecting to servers until I got the right one.

@callumarmitage instead of brute-forcing you could use TeamSpeakClient.GetServers() and the property GetServerListInfo.Id should be the virtual server Id


there's no way for me to figure out said server Id

The port is also covered by the rich client: GetServerListInfo.Port

from teamspeak3queryapi.

nikeee avatar nikeee commented on June 16, 2024

Is there an inner exception? What is the value of the Error property of QueryException? Did you ensure that a virtual server with the IDs you tested exist?

from teamspeak3queryapi.

HydroCG avatar HydroCG commented on June 16, 2024

That's the full stack trace obtained from Console.WriteLine(e.StackTrace) so as far as I'm aware that's it.

With regards to the virtual server, the Id's I've tested are ripped straight from the old Java client I'm trying to port into C# so the Ids should be fine. All the information I can attain from it regarding the stack is in the original report.

The QueryException#Error is Teamspeak3QueryApi.Net.QueryError
The QueryException#Error#Message is "server is not running" which is really confusing because the exact same connection info, but in my Java client, seems to work fine.

from teamspeak3queryapi.

nikeee avatar nikeee commented on June 16, 2024

A QueryError is only thrown if the TeamSpeak server responds with an error code that is non-zero. The message of this exception is also taken from that response. So the server is not running message actually comes from the server. Maybe you should consult the TeamSpeak support on this one. Or - if you want - you can provide a docker setup for reproduction of this issue, so I can debug this error better.

from teamspeak3queryapi.

HydroCG avatar HydroCG commented on June 16, 2024

Alright, I've got to the bottom of the issue. The old API i was using used the servers port as the virtual server Id whereas this one is using some arbitrary number. I've managed to find the correct server Id by doing an incremental search and just connecting to servers until I got the right one.

For future reference, could a feature be added where we can select the servers port as a connection Id as opposed to the raw Id of the server as there's no way for me to figure out said server Id (to my understanding).

from teamspeak3queryapi.

nikeee avatar nikeee commented on June 16, 2024

This API is just a wrapper for the query API provided by the server. UseServer is not specific to this library, it actually sends a command to the server and is associated with the session.

You should be able to look up the virtual server ID in the database of the server (if you have access to it). Also, the API provided a serverlist method that lists all virtual servers in the server. I don't know if the rich client supports it at the moment. However, using the bare QueryClient, it should work. If it's not supported in TeamSpeakClient, this is definitely a missing feature.

from teamspeak3queryapi.

nikeee avatar nikeee commented on June 16, 2024

Thanks for mentioning that!

from teamspeak3queryapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.