Page 1 of 1

InitCrypto fails

Posted: 24 Apr 2021, 14:09
by --F--
InitCrypto fails on Unity 2019.4.24 with error:

Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.

Code: Select all

ConfigData cfg = new ConfigData();
cfg.Host = "";
cfg.Port = 9933;
cfg.HttpPort = 8080;
cfg.HttpsPort = 8443;
cfg.Zone = Zone;

It doesn't log to smartfox server so I think It is a unity client api error which I don't have access.

Re: InitCrypto fails

Posted: 26 Apr 2021, 08:09
by Bax
(moved to the appropriate forum section)

What version of the C# API are you using?

Re: InitCrypto fails

Posted: 26 Apr 2021, 08:14
by Lapo
can you show us the full stack trace of the client side error?

Have you double checked that the SSL certificate you have deployed works correctly? (i.e. checking by pointing your browser)
Also, can you please check that you don't have server side errors, when this happens?