Closed crypticcfrost closed 3 years ago
It appears that server isn't responding to queries. It may be offline or configured improperly.
Here's your server: http://fivem.pmarp.com:30120/info.json Here's another server: http://54.39.95.165:30120/info.json
Thanks for that @mmorrisontx. I've found that out too🙂 The issue is still with gamedig. I've tried to make queries for 2 other servers and also asked someone else to try it out but still fails. I had it work 1 or 2 times but that was it. Just wanted to let the creators and the contributors know so they have a potential clue on the issues.
Gamedig consistently is able to query the second server I listed above:
$ bin/gamedig.js --type fivem 54.39.95.165:30120
{"name":"[#1 Official] ^4Simple Life ^1RP ^9| ^2Public � ^9| ^4COPS � ^9| ^1FIRE
/EMS � ^9| ^6CAD �️ ^9| ^8EUP � ^9| ^7Live Map �️ ^9| ^3vMenu �️ ^9| Join ➕disco
rd.gg/simpleliferp for perks! �","map":"fivem-map-hipster","password":false,"raw
":{"sv_maxclients":"64","clients":"0","challenge":"xxx\u0000","gamename":"Citize
nFX","protocol":"4","hostname":"[#1 Official] ^4Simple Life ^1RP ^9| ^2Public �
^9| ^4COPS � ^9| ^1FIRE/EMS � ^9| ^6CAD �️ ^9| ^8EUP � ^9| ^7Live Map �️ ^9| ^3v
Menu �️ ^9| Join ➕discord.gg/simpleliferp for perks! �","gametype":"Freeroam","m
apname":"fivem-map-hipster","iv":"2079050280","info":{"enhancedHostSupport":true
,"icon":"...","resources":["hardcap","sonorancad","spawnmanager
","discord_perms","_cfx_internal","shag_hud","basic-gamemode","monitor","EasyAdm
in","AiFix","deerGroupChat","WheelPackC","sonoran_livemap","ihateai","pNotify","
tablet","aop","chat","chairbedsystem","Discord-Bot","cruisecontrol","PagerScript
","DeathScript","towscript","doorlock","bob74ipl","FireScript","heli","volvopack
","hose","legacyfuel","LEOpack","casinointerior","kgv-phone","ult-firedept","PDB
ike","lux2","MasterScripts","casino_vehsounds2","mythicprogbar","nearest-postal"
,"newscam","RPChatNew","CityHall","repairsystem","TechRadar","wk_wars2x","Discor
dAcePerms","PoliceEMSActivity","blanco","whitelist","fivem","casinoexterior","ma
pmanager","AceBlacklisterNew","BCTLS","blips","vMenu","bmamas","dpemotes","DDA",
"casino_pack","delperro","fivem-ipl","fivem-map-hipster","grapeseed","LSMC","map
-new","Mirror","paletofire","paletomedical","paletopd","pillboxhospital","prison
","proxy","stretcher","vstancer","sandymedical","sandypd","SLRP-AntiCheat","vesp
ucci","vinewoodpd","MaxxyCeetsPack","Metro","PaletoInt","patochepaleto","carpack
","NativeUI","PlayerLogs","rconlog","scoreboard","sessionmanager","ellie_luci","
shagload","SLRP-AntiCheatDetection","donopack3","addon_bikes","bmwpack","casino_
vehsounds","civsaini","DonatorPack","planepack","JobVehiclesPack","dpclothes","S
hagPack","shagpack2","shagpack3","20blazer","truckpack","16fpiu","ec135","ESextr
a","FDpack","FDTiller","newAmbulance","eup-stream","eup-ui","parkrls","replaceme
nts","inferno-fire-alarm","inferno-ladders","inferno-pass-alarm","inferno-tic","
inferno-weapons","stretcherscript","trump-stretcher","trump-stretcher-script","B
etterRecoil","lesslethal_shotgun","newWeapons","SAHS","SEM_InteractionMenuNew","
donopack1","donopack2","CopRaptor","Audis8","ccvolvo","wf01"],"server":"FXServer
-master SERVER v1.0.0.2967 win32","vars":{"Discord":"discord.gg/simpleliferp","W
hitelist":"Join our Discord for perks!","banner_connecting":"https://imgur.com/k
8zViAM","banner_detail":"https://imgur.com/k8zViAM","gamename":"gta5","locale":"
en-US","onesync_enabled":"true","sv_enhancedHostSupport":"true","sv_lan":"false"
,"sv_licenseKeyToken":"vnccghvwdyk9jrts_45001:994160eb2ab4b522e5dc8ab30bd45e462a
df5e1beac4f6da90eb06181fa6dd50","sv_maxClients":"64","sv_scriptHookAllowed":"fal
se","tags":"rp, roleplay, civilian, crime, cops, police, fire, ems, custom, cad,
vmenu, us, eu, custom cars, reallife, serious, custom scripts, realistic, lspd,
bcso, sahp, discord, fun, racing, serious rp, strict, fivem, san andreas, blain
e county","txAdmin-version":"2.7.1"},"version":2079050280},"players":[]},"maxpla
yers":"64","players":[],"bots":[],"connect":"54.39.95.165:30120","ping":51}
Part of fivem's query protocol is the /info.json http resource I've linked above. If you are unable to access that link in a web browser (try opening it in your browser), then gamedig definitely will not be able to query it.
It gives me that the server is offline and it is online What's the solution?
I have been trying to use the gamedig query in my Discord.js bot to retrieve information from the game server with the following code
const Gamedig = require ('gamedig');
Gamedig.query({
type:'fivem',
host:'fivem.pmarp.com'
}).then((state) => {
console.log(state);
}).catch((error) => {
console.log(error)
});
}
But everytime I try it only gives back an error Failed all 1 attempts.
I went in for a detailed error and this is what it is :
If there is a potential fix or a reason to this, please let me know. I have also tried --socketTimeout to upto 5000 but still no help.