I'm trying to get started with the Multiplayer Servers 2.0 preview, but having trouble when the sdk starts trying to communicate to the MockAgentVM, when in container mode. I've tried both the sample and my own custom .net core 3 server app, and they each work properly when running "RunContainer: false" mode but throw exception on what I think is the first http connection from sdk to mockAgent, on the first heartbeat check, when running as "RunContainer: true". I also tried deploying the build, but the VM never made it past 'propping' stage, and besides I'd rather have it working in a mock setup first for development.
I'm not sure on how to proceed with debugging this, since things work when not in container, and the server itself also runs and can be connected to (even in container), it's just the sdk -> agentVM part that's not working.
Version Info (all-latest afaik):
- "com.playfab.csharpgsdk" Version="0.9.190516" (my server)
- "com.playfab.csharpgsdk" Version="0.9.190509" (sample server)
- Docker version 19.03.1, build 74b1e89
- MockAgentVM release 0.7
Exception:
2019-08-09T03:56:26.2798817Z Cannot send heartbeat: An error occurred while sending the request. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 172.19.0.11:56001 at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult) at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Playfab.Gaming.GSDK.CSharp.HttpClientProxy.<SendHeartbeatAsync>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Playfab.Gaming.GSDK.CSharp.InternalSdk.<SendHeartbeatAsync>d__52.MoveNext()