Often when I'm trying to make Player.IO calls, I get errors such as this:
- Code: Select all
PlayerIOClient.PlayerIOError: GeneralError; Resolving host timed out: api.playerio.com
- Code: Select all
PlayerIOClient.PlayerIOError: GeneralError; Recv failure: Connection reset by peer
Here are some observations I've made:
- The errors happen frequently, but not consistently. If I execute 50 Player.IO API calls, I might get anywhere from 0 to 30+ errors, averaging ~10.
- The errors only occur on Mac whereas a PC (running on the same network) executes flawlessly.
- These errors only occur when I'm making multiple SIMULTANEOUS Player.IO calls - running the same calls back-to-back results in normal operation.
- I've tried to eliminate as many factors as possible: Multiple Macs on multiple networks yield the same results. I even tried a different API - I got similar results using the Powered by GameSpy SDK. The only common factor I can see is Unity itself.
- I noticed some Unity forum posts citing similar issues with Unity's WWW class. Does the Player.IO API utilize that class in any way?
Mostly I am just curious if anyone has run into issues like this. I know this post probably belongs on a Unity-specific forum, but given that the only networking I do is through the PlayerIO SDK I'm afraid people will brush off the issue as a specific to the API. I'm quite certain this is NOT a PlayerIO issue. But if anyone has any troubleshooting steps or workaround suggestions it would be much appreciated!