ListFleet returning 0
So i created a fleet on console it shows its status as Active, Instances 1, Servers active 1
But on my Unity Client application when i call ListFleet it shows as if there's none, here's my call:
Debug.Log("Request fleet list");
var fleetsListRequest = new ListFleetsRequest();
var fleetListTask = _amazonGameLiftClient.ListFleetsAsync(fleetsListRequest);
ListFleetsResponse __listResponse = await fleetListTask;
Debug.Log("Total fleets " + __listResponse.FleetIds.Count);
if(fleetListTask != null)
{
Debug.Log("Display fleets");
foreach (var __fleet in __listResponse.FleetIds)
{
Debug.Log(__fleet);
}
}
Also when i try to create a new CreateGameSession i get the expection saying that the fleetID requested for my userID does not exist.
I don't know why is not finding my fleet, i checked the logedin id in a Debug.Log and it's correct, i also checked cognito console and shows the user login. Does anyone have a clue as to what might be going on?
It turns out i created my fleet on SA and i was trying to get from SE 😅
One thing to note is that you shouldn't include AWS credentials in game clients, e.g. to call ListFleet. A bad actor could potentially steal those credentials and, at the very least, spam ListFleet calls to get your account throttled and deny access for other players.
You should instead create a backend service to call gamelift on your client's behave. See:
Relevant questions
Campaign shows 0 targeted endpoints even with eligible endpoints
asked a year agoUnable to reserver a process on fleet ( FleetCapacityExceededException)
Accepted Answerasked 7 months agoEC2 instance shows status check fail during couple out instances.
Accepted Answerasked 3 years agoAWS Gamelift Fleet Instance Capacity not updating on terminated fleet
asked 5 months agoServer screenshot shows lock screen even when server is not in lockscreen
asked 2 months agoAcceptPlayerSession() accepts existing active player session
asked 2 years agoCan we setup FSx as an Active-Active DR solution for On-premises file server?
Accepted Answerasked 2 months agoAn error message always shows on top of the WorkSpace service page, how to close it?
asked 14 days agoListFleet returning 0
asked 8 months agoRDS mysql releases the active as well as idle connections
asked a month ago