Comments (7)
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.
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.
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.
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.
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.
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.
Thanks for mentioning that!
from teamspeak3queryapi.
Related Issues (20)
- No responses come through after lots of activity HOT 4
- TeamSpeak3QueryApi.pdb not loaded HOT 2
- Setting channel parent via channeledit does not work, consider removing it. HOT 1
- Not getting any response HOT 8
- SSH Support HOT 5
- Multiple channel notifications problem HOT 8
- Fatal error: Unsubscripe with callback won't work HOT 1
- Adding ssh as nuget package HOT 3
- SendAsync with Parameters and Options don't work HOT 1
- Events occasionally do not fire (ClientLeftView,ClientEnterView,TextMessage) HOT 10
- Feature Request: Automatic Keep-Alive HOT 3
- Get RequestedTalkPower of Client HOT 1
- Migrate to GH Actions HOT 1
- Adding Talkpower Serialization
- TeaSpeak connection was refused at .Connect(); HOT 1
- GetClients returns empty list in TextMessage notification
- Migrate to more recent .NET version HOT 10
- Unit tests for the query parser
- Improve API documentation HOT 2
- Client times out after 5 mins HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teamspeak3queryapi.